nus-yam/ex-repair huggingface dataset:
Buggy code:
public class MyDeque < T > { private final int DEFAULT_SIZE = 10 ; private T [ ] items ; private int head ; private int tail ; private int size ; private int [ ] vals ; public MyDeque ( ) { } private int normalize ( int n ) { } private void resize ( ) { } public boolean add ( T item ) { } public void add ( T item , int priority ) { } public void addFirst ( T item ) { } public void addLast ( T item ) { } public T getFirst ( ) { } public T getLast ( ) { } public T removeFirst ( ) { } public T removeLast ( ) { } public T removeSmallest ( ) { int smallest = vals [ head ] ; int smallIndex = head ; if ( ( head ) <= ( tail ) ) { <START_BUG> for ( int i = head ; i ++ ; i = tail ) { <END_BUG> if ( ( vals [ i ] ) < smallest ) { smallIndex = i ; smallest = vals [ i ] ; } } } else { for ( int i = 0 ; i <= ( tail ) ; i ++ ) { if ( ( vals [ i ] ) < smallest ) { smallIndex = i ; smallest = vals [ i ] ; } } for ( int i = head ; i < ( size ) ; i ++ ) { if ( ( vals [ i ] ) < smallest ) { smallIndex = i ; smallest = vals [ i ] ; } } } return items [ smallIndex ] ; } public int size ( ) { } public String toString ( ) { } public static void main ( String [ ] args ) { } }

Fix:
for ( int i = head ; i <= ( tail ) ; i ++ ) {
Buggy code:
public class TestSubScorerFreqs extends LuceneTestCase { private static Directory dir ; private static IndexSearcher s ; @ BeforeClass public static void makeIndex ( ) throws Exception { TestSubScorerFreqs . dir = new RAMDirectory ( ) ; RandomIndexWriter w = new RandomIndexWriter ( random ( ) , TestSubScorerFreqs . dir , newIndexWriterConfig ( TEST_VERSION_CURRENT , new org . apache . lucene . analysis . MockAnalyzer ( random ( ) ) ) . setMergePolicy ( newLogMergePolicy ( ) ) ) ; int num = atLeast ( 31 ) ; for ( int i = 0 ; i < num ; i ++ ) { Document doc = new Document ( ) ; doc . add ( newTextField ( "f" , "a<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>d" , NO ) ) ; w . addDocument ( doc ) ; doc = new Document ( ) ; doc . add ( newTextField ( "f" , "a<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d" , NO ) ) ; w . addDocument ( doc ) ; } TestSubScorerFreqs . s = newSearcher ( w . getReader ( ) ) ; <START_BUG> w . close ( ) ; <END_BUG> } @ AfterClass public static void finish ( ) throws Exception { } private static class CountingCollector extends FilterCollector { public final Map < Integer , Map < Query , Float > > docCounts = new HashMap < > ( ) ; private final Map < Query , Scorer > subScorers = new HashMap < > ( ) ; private final Set < String > relationships ; public CountingCollector ( Collector other ) { } public CountingCollector ( Collector other , Set < String > relationships ) { } public void setSubScorers ( Scorer scorer , String relationship ) { } public LeafCollector getLeafCollector ( AtomicReaderContext context ) throws IOException { } } private static final float FLOAT_TOLERANCE = 1.0E-5F ; @ Test public void testTermQuery ( ) throws Exception { } @ Test public void testBooleanQuery ( ) throws Exception { } @ Test public void testPhraseQuery ( ) throws Exception { } }

Fix:
w . shutdown ( ) ;
Buggy code:
public class FolderInfoPanel extends CInfoPanel implements SelectionListener { private JLabel leftLabel ; private JLabel readLabel ; private JLabel unreadLabel ; private JLabel recentLabel ; private JPanel rightPanel ; private MessageFolderInfo info ; private FolderItem item ; public void initComponents ( ) { } public void resetRenderer ( ) { } public void setFolder ( MessageFolder newFolder ) { <START_BUG> item = newFolder . getFolderItem ( ) ; <END_BUG> if ( ( item ) == null ) { return ; } info = ( ( MessageFolder ) ( newFolder ) ) . getMessageFolderInfo ( ) ; if ( ( info ) == null ) { return ; } int total = info . getExists ( ) ; int unread = info . getUnseen ( ) ; int recent = info . getRecent ( ) ; leftLabel . setIcon ( FolderTreeCellRenderer . getFolderIcon ( newFolder , false ) ) ; leftLabel . setText ( ( ( ( ( newFolder . getName ( ) ) + "<seq2seq4repair_space>(<seq2seq4repair_space>total:<seq2seq4repair_space>" ) + total ) + "<seq2seq4repair_space>)" ) ) ; unreadLabel . setText ( ( "<seq2seq4repair_space>unread:<seq2seq4repair_space>" + unread ) ) ; readLabel . setText ( ( ( "<seq2seq4repair_space>read:<seq2seq4repair_space>" + ( total - unread ) ) + "<seq2seq4repair_space>" ) ) ; if ( recent > 0 ) { recentLabel . setText ( ( "<seq2seq4repair_space>recent:<seq2seq4repair_space>" + recent ) ) ; } else { recentLabel . setText ( "" ) ; } } public void selectionChanged ( SelectionChangedEvent e ) { } }

Fix:
item = newFolder . getConfiguration ( ) ;
Buggy code:
public class RnrFormItemRepository { GenericDao < RnrFormItem > genericDao ; @ Inject DbUtil dbUtil ; @ Inject public RnrFormItemRepository ( Context context ) { } public List < RnrFormItem > queryListForLowStockByProductId ( final Product product ) throws LMISException { } public void create ( final List < RnrFormItem > rnrFormItemList ) throws LMISException { } public void delete ( final List < RnrFormItem > rnrFormItemListWrapper ) throws LMISException { } public int getLowStockAvg ( final Product product ) { try { List < RnrFormItem > rnrFormItemList = queryListForLowStockByProductId ( product ) ; long total = 0 ; for ( RnrFormItem item : rnrFormItemList ) { total += item . getIssued ( ) ; } <START_BUG> if ( ( rnrFormItemList . size ( ) ) > 0 ) { <END_BUG> return ( ( int ) ( Math . ceil ( ( ( total // ( rnrFormItemList . size ( ) ) ) * 0.05 ) ) ) ) ; } } catch ( LMISException e ) { e . reportToFabric ( ) ; } return 0 ; } }

Fix:
if ( ( rnrFormItemList . size ( ) ) >= 3 ) {
Buggy code:
public class Memtable implements Comparable < Memtable > , IFlushable { private static final Logger logger = LoggerFactory . getLogger ( Memtable . class ) ; private boolean isFrozen ; private final int THRESHOLD = ( ( DatabaseDescriptor . getMemtableThroughput ( ) ) * 1024 ) * 1024 ; private final int THRESHOLD_COUNT = ( ( int ) ( ( ( DatabaseDescriptor . getMemtableOperations ( ) ) * 1024 ) * 1024 ) ) ; private final AtomicInteger currentThroughput = new AtomicInteger ( 0 ) ; private final AtomicInteger currentOperations = new AtomicInteger ( 0 ) ; private final long creationTime ; private final ConcurrentNavigableMap < DecoratedKey , ColumnFamily > columnFamilies = new ConcurrentSkipListMap < DecoratedKey , ColumnFamily > ( ) ; private final IPartitioner partitioner ; private final ColumnFamilyStore cfs ; public Memtable ( ColumnFamilyStore cfs , IPartitioner partitioner ) { } public int compareTo ( Memtable rhs ) { } public int getCurrentThroughput ( ) { } public int getCurrentOperations ( ) { } boolean isThresholdViolated ( ) { } boolean isFrozen ( ) { } void freeze ( ) { } void put ( DecoratedKey key , ColumnFamily columnFamily ) { } private void resolve ( DecoratedKey key , ColumnFamily cf ) { } public String contents ( ) { } private SSTableReader writeSortedContents ( ) throws IOException { Memtable . logger . info ( ( "Writing<seq2seq4repair_space>" + ( this ) ) ) ; <START_BUG> SSTableWriter writer = new SSTableWriter ( cfs . getFlushPath ( ) , columnFamilies . size ( ) , partitioner ) ; <END_BUG> for ( Map . Entry < DecoratedKey , ColumnFamily > entry : columnFamilies . entrySet ( ) ) writer . append ( entry . getKey ( ) , entry . getValue ( ) ) ; SSTableReader ssTable = writer . closeAndOpenReader ( ) ; Memtable . logger . info ( ( "Completed<seq2seq4repair_space>flushing<seq2seq4repair_space>" + ( ssTable . getFilename ( ) ) ) ) ; return ssTable ; } public void flushAndSignal ( final CountDownLatch latch , ExecutorService sorter , final ExecutorService writer ) { } public String toString ( ) { } public Iterator < Map . Entry < DecoratedKey , ColumnFamily > > getEntryIterator ( DecoratedKey startWith ) { } public boolean isClean ( ) { } public String getTableName ( ) { } public static IColumnIterator getSliceIterator ( final DecoratedKey key , final ColumnFamily cf , SliceQueryFilter filter , AbstractType typeComparator ) { } public static IColumnIterator getNamesIterator ( final DecoratedKey key , final ColumnFamily cf , final NamesQueryFilter filter ) { } public ColumnFamily getColumnFamily ( DecoratedKey key ) { } void clearUnsafe ( ) { } public boolean isExpired ( ) { } }

Fix:
SSTableWriter writer = new SSTableWriter ( cfs . getFlushPath ( ) , columnFamilies . size ( ) , cfs . metadata , partitioner ) ;
Buggy code:
public class HandlerOperationsTestCase extends AbstractOperationsTestCase { static final String ENCODING = "UTF-8" ; @ Override protected void standardSubsystemTest ( final String configId ) throws Exception { } @ Override protected String getSubsystemXml ( ) throws IOException { } @ Test public void testOperations ( ) throws Exception { final KernelServices kernelServices = boot ( ) ; testAsyncHandler ( kernelServices , null ) ; testAsyncHandler ( kernelServices , PROFILE ) ; testConsoleHandler ( kernelServices , null ) ; testConsoleHandler ( kernelServices , PROFILE ) ; testFileHandler ( kernelServices , null ) ; testFileHandler ( kernelServices , PROFILE ) ; testPeriodicRotatingFileHandler ( kernelServices , null ) ; testPeriodicRotatingFileHandler ( kernelServices , PROFILE ) ; testSizeRotatingFileHandler ( kernelServices , null ) ; <START_BUG> testPeriodicRotatingFileHandler ( kernelServices , PROFILE ) ; <END_BUG> } @ Test @ Ignore ( "WFLY-1860<seq2seq4repair_space>-<seq2seq4repair_space>reenable<seq2seq4repair_space>after<seq2seq4repair_space>JIRA<seq2seq4repair_space>is<seq2seq4repair_space>resolved" ) public void testFormats ( ) throws Exception { } @ Test public void testFormatsNoColor ( ) throws Exception { } private void testAsyncHandler ( final KernelServices kernelServices , final String profileName ) throws Exception { } private void testConsoleHandler ( final KernelServices kernelServices , final String profileName ) throws Exception { } private void testFileHandler ( final KernelServices kernelServices , final String profileName ) throws Exception { } private void testPeriodicRotatingFileHandler ( final KernelServices kernelServices , final String profileName ) throws Exception { } private void testSizeRotatingFileHandler ( final KernelServices kernelServices , final String profileName ) throws Exception { } protected void testWriteCommonAttributes ( final KernelServices kernelServices , final ModelNode address ) throws Exception { } protected void testUndefineCommonAttributes ( final KernelServices kernelServices , final ModelNode address ) throws Exception { } private void addPatternFormatter ( final KernelServices kernelServices , final String profileName , final String name ) throws Exception { } private void removePatternFormatter ( final KernelServices kernelServices , final String profileName , final String name ) throws Exception { } }

Fix:
testSizeRotatingFileHandler ( kernelServices , PROFILE ) ;
Buggy code:
public class nsISupportsWeakReference extends nsISupports { static final int LAST_METHOD_ID = ( nsISupports . LAST_METHOD_ID ) + 1 ; public static final String NS_ISUPPORTSWEAKREFERENCE_IID_STRING = "9188bc86-f92e-11d2-81ef-0060083a0bcf" ; public static final nsID NS_ISUPPORTSWEAKREFERENCE_IID = new nsID ( nsISupportsWeakReference . NS_ISUPPORTSWEAKREFERENCE_IID_STRING ) ; public nsISupportsWeakReference ( int address ) { } public int GetWeakReference ( int [ ] retVal ) { <START_BUG> return XPCOM . VtblCall ( ( ( super . LAST_METHOD_ID ) + 1 ) , getAddress ( ) , retVal ) ; <END_BUG> } }

Fix:
return XPCOM . VtblCall ( ( ( nsISupports . LAST_METHOD_ID ) + 1 ) , getAddress ( ) , retVal ) ;
Buggy code:
public abstract class AbstractTextComponent extends FormComponent { private static final int TYPE_RESOLVED = Component . FLAG_RESERVED4 ; private static final long serialVersionUID = 1L ; public static interface ITextFormatProvider { String getTextFormat ( ) { } } public AbstractTextComponent ( String id ) { } public AbstractTextComponent ( final String id , final IModel model ) { } public final boolean getConvertEmptyInputStringToNull ( ) { } public boolean isInputNullable ( ) { } protected void onBeforeRender ( ) { super . onBeforeRender ( ) ; <START_BUG> if ( ! ( getFlag ( AbstractTextComponent . TYPE_RESOLVED ) ) ) { <END_BUG> Class type = getModelType ( getModel ( ) ) ; if ( ! ( String . class . equals ( type ) ) ) { setType ( type ) ; } setFlag ( AbstractTextComponent . TYPE_RESOLVED , true ) ; } } private Class getModelType ( IModel model ) { } public final FormComponent setConvertEmptyInputStringToNull ( boolean flag ) { } protected Object convertValue ( String [ ] value ) throws ConversionException { } protected boolean supportsPersistence ( ) { } }

Fix:
if ( ( ! ( getFlag ( AbstractTextComponent . TYPE_RESOLVED ) ) ) && ( ( getType ( ) ) == null ) ) {
Buggy code:
public class ThriftMessage extends TTransport implements ByteBufHolder { private static final int DEFAULT_BUFFER_SIZE = 1024 ; private final ByteBuf payload ; private final ThriftTransportType transportType ; public ThriftMessage ( ThriftTransportType transportType , ByteBuf payload ) { } public ThriftMessage ( ThriftTransportType transportType ) { } @ Override public void write ( byte [ ] array , int offset , int length ) throws TTransportException { } @ Override public int read ( byte [ ] array , int offset , int length ) throws TTransportException { } @ Override public void open ( ) throws TTransportException { } @ Override public boolean isOpen ( ) { <START_BUG> return true ; <END_BUG> } @ Override public void close ( ) { } @ Override public int refCnt ( ) { } @ Override public boolean release ( ) { } @ Override public boolean release ( int decrement ) { } @ Override public ByteBuf content ( ) { } @ Override public ThriftMessage copy ( ) { } @ Override public byte [ ] getBuffer ( ) { } @ Override public ThriftMessage duplicate ( ) { } @ Override public ThriftMessage retain ( ) { } @ Override public ThriftMessage retain ( int increment ) { } public ThriftTransportType getTransportType ( ) { } }

Fix:
return ( payload . refCnt ( ) ) > 0 ;
Buggy code:
public class AntTest extends BuildFileTest { public AntTest ( String name ) { } public void setUp ( ) { } public void tearDown ( ) { } public void test1 ( ) { } public void test2 ( ) { } public void test3 ( ) { } public void test4 ( ) { } public void test5 ( ) { } public void test6 ( ) { } public void testExplicitBasedir1 ( ) { } public void testExplicitBasedir2 ( ) { } public void testInheritBasedir ( ) { } public void testDoNotInheritBasedir ( ) { } public void testBasedirTripleCall ( ) { } protected void testBaseDirs ( String target , String [ ] dirs ) { } public void testReferenceInheritance ( ) { } public void testReferenceNoInheritance ( ) { } public void testReferenceRename ( ) { } protected void testReference ( String target , String [ ] keys , boolean [ ] expect , Object value ) { } public void testLogfilePlacement ( ) { <START_BUG> File [ ] logFiles = new File [ ] { getProject ( ) . resolveFile ( "test1.log" ) , getProject ( ) . resolveFile ( "test2.log" ) , getProject ( ) . resolveFile ( "ant//test3.log" ) , getProject ( ) . resolveFile ( "ant//test3.log" ) } ; <END_BUG> for ( int i = 0 ; i < ( logFiles . length ) ; i ++ ) { assertTrue ( ( ( logFiles [ i ] . getName ( ) ) + "<seq2seq4repair_space>doesn\'t<seq2seq4repair_space>exist" ) , ( ! ( logFiles [ i ] . exists ( ) ) ) ) ; } executeTarget ( "testLogfilePlacement" ) ; for ( int i = 0 ; i < ( logFiles . length ) ; i ++ ) { assertTrue ( ( ( logFiles [ i ] . getName ( ) ) + "<seq2seq4repair_space>exists" ) , logFiles [ i ] . exists ( ) ) ; } } private class BasedirChecker implements BuildListener { private String [ ] expectedBasedirs ; private int calls = 0 ; private AssertionFailedError error ; BasedirChecker ( String [ ] dirs ) { } public void buildStarted ( BuildEvent event ) { } public void buildFinished ( BuildEvent event ) { } public void targetFinished ( BuildEvent event ) { } public void taskStarted ( BuildEvent event ) { } public void taskFinished ( BuildEvent event ) { } public void messageLogged ( BuildEvent event ) { } public void targetStarted ( BuildEvent event ) { } AssertionFailedError getError ( ) { } } private class ReferenceChecker implements BuildListener { private String [ ] keys ; private boolean [ ] expectSame ; private Object value ; private int calls = 0 ; private AssertionFailedError error ; ReferenceChecker ( String [ ] keys , boolean [ ] expectSame , Object value ) { } public void buildStarted ( BuildEvent event ) { } public void buildFinished ( BuildEvent event ) { } public void targetFinished ( BuildEvent event ) { } public void taskStarted ( BuildEvent event ) { } public void taskFinished ( BuildEvent event ) { } public void messageLogged ( BuildEvent event ) { } public void targetStarted ( BuildEvent event ) { } AssertionFailedError getError ( ) { } } }

Fix:
File [ ] logFiles = new File [ ] { getProject ( ) . resolveFile ( "test1.log" ) , getProject ( ) . resolveFile ( "test2.log" ) , getProject ( ) . resolveFile ( "ant//test3.log" ) , getProject ( ) . resolveFile ( "ant//test4.log" ) } ;
Buggy code:
public class PlayerDataCache implements PlayerDataServiceProvider { private final File folder ; private final String extension = ".dat" ; private final String folderName = "players" ; private final SwornGuard plugin ; private final ConcurrentMap < String , PlayerData > cache ; public PlayerDataCache ( SwornGuard plugin ) { } private final PlayerData getData ( String key ) { } @ Override public final PlayerData getData ( UUID uniqueId ) { } @ Override public final PlayerData getData ( Player player ) { PlayerData data = getData ( getKey ( player ) ) ; if ( data == null ) { data = newData ( player ) ; } List < String > history = data . getHistory ( ) ; if ( ( history == null ) && ( plugin . isEssentialsEnabled ( ) ) ) { history = plugin . getEssentialsHandler ( ) . getHistory ( player . getUniqueId ( ) ) ; } String lastKnownBy = data . getLastKnownBy ( ) ; <START_BUG> if ( lastKnownBy != null ) { <END_BUG> if ( ! ( lastKnownBy . equals ( player . getName ( ) ) ) ) { if ( history == null ) { history = new ArrayList < String > ( ) ; } if ( lastKnownBy . equalsIgnoreCase ( player . getName ( ) ) ) { plugin . getLogHandler ( ) . log ( "Corrected<seq2seq4repair_space>casing<seq2seq4repair_space>for<seq2seq4repair_space>{0}''s<seq2seq4repair_space>name." , player . getName ( ) ) ; history . remove ( lastKnownBy ) ; data . setLastKnownBy ( ( lastKnownBy = player . getName ( ) ) ) ; history . add ( lastKnownBy ) ; } else { plugin . getLogHandler ( ) . log ( "{0}<seq2seq4repair_space>changed<seq2seq4repair_space>their<seq2seq4repair_space>name<seq2seq4repair_space>to<seq2seq4repair_space>{1}." , lastKnownBy , player . getName ( ) ) ; data . setLastKnownBy ( ( lastKnownBy = player . getName ( ) ) ) ; history . add ( lastKnownBy ) ; } } } else { data . setLastKnownBy ( ( lastKnownBy = player . getName ( ) ) ) ; } if ( history == null ) { history = new ArrayList < String > ( ) ; history . add ( player . getName ( ) ) ; } data . setHistory ( history ) ; data . setUniqueId ( player . getUniqueId ( ) . toString ( ) ) ; return data ; } @ Override public final PlayerData getData ( OfflinePlayer player ) { } public final PlayerData newData ( String key ) { } public final PlayerData newData ( Player player ) { } public final PlayerData newData ( OfflinePlayer player ) { } private final PlayerData loadData ( String key ) { } public final void save ( ) { } @ Deprecated public final void save ( boolean cleanup ) { } public final void cleanupData ( ) { } @ Override public final Map < String , PlayerData > getAllLoadedPlayerData ( ) { } @ Override public final Map < String , PlayerData > getAllPlayerData ( ) { } private final void convertToUUID ( ) { } private final Map < String , PlayerData > getUnconvertedData ( ) { } private final String getKey ( OfflinePlayer player ) { } private final String getFileName ( String key ) { } private final boolean isFileLoaded ( String fileName ) { } public int getFileListSize ( ) { } public int getCacheSize ( ) { } No newline ; at end ; of file ; }

Fix:
if ( ( lastKnownBy != null ) && ( ! ( lastKnownBy . isEmpty ( ) ) ) ) {
Buggy code:
public class ConnectHandler extends CommandHandlerWithHelp { public ConnectHandler ( ) { } public ConnectHandler ( String command ) { } @ Override protected void doHandle ( CommandContext ctx ) { <START_BUG> String args = ctx . getCommandArguments ( ) ; <END_BUG> int port = - 1 ; String host = null ; if ( args != null ) { String portStr = null ; int colonIndex = args . indexOf ( ':' ) ; if ( colonIndex < 0 ) { host = args ; } else if ( colonIndex == 0 ) { portStr = args . substring ( 1 ) . trim ( ) ; } else { host = args . substring ( 0 , colonIndex ) . trim ( ) ; portStr = args . substring ( ( colonIndex + 1 ) ) . trim ( ) ; } if ( portStr != null ) { try { port = Integer . parseInt ( portStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( "The<seq2seq4repair_space>port<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>non-negative<seq2seq4repair_space>integer:<seq2seq4repair_space>'" + args ) + "'" ) ) ; return ; } if ( port < 0 ) { ctx . printLine ( ( ( "The<seq2seq4repair_space>port<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>non-negative<seq2seq4repair_space>integer:<seq2seq4repair_space>'" + args ) + "'" ) ) ; return ; } } } ctx . connectController ( host , port ) ; } }

Fix:
String args = ctx . getArgumentsString ( ) ;
Buggy code:
public class Location { public int inputOffset ; public int outputLine ; public int outputColumn ; public int outputIndentationLevel ; public boolean needSpace ; public boolean pendingSpace ; public int nlsTagCounter ; public int lastLocalDeclarationSourceStart ; public int numberOfIndentations ; public int lastNumberOfNewLines ; int editsIndex ; OptimizedReplaceEdit textEdit ; public Location ( Scribe scribe , int sourceRestart ) { } public void update ( Scribe scribe , int sourceRestart ) { this . outputColumn = scribe . column ; this . outputLine = scribe . line ; this . inputOffset = sourceRestart ; this . outputIndentationLevel = scribe . indentationLevel ; this . lastNumberOfNewLines = scribe . lastNumberOfNewLines ; this . needSpace = scribe . needSpace ; this . pendingSpace = scribe . pendingSpace ; this . editsIndex = scribe . editsIndex ; this . nlsTagCounter = scribe . nlsTagCounter ; this . numberOfIndentations = scribe . numberOfIndentations ; <START_BUG> textEdit = scribe . getLastEdit ( ) ; <END_BUG> } }

Fix:
this . textEdit = scribe . getLastEdit ( ) ;
Buggy code:
public final class LibrarySession extends WebSession { private User user ; protected LibrarySession ( final WebApplication application ) { } public final User authenticate ( final String username , final String password ) { if ( ( user ) == null ) { if ( ( "wicket" . equalsIgnoreCase ( username ) ) && ( "wicket" . equalsIgnoreCase ( password ) ) ) { final User user = new User ( ) ; user . setName ( username ) ; <START_BUG> final List books = user . getBooks ( ) ; <END_BUG> books . add ( new Book ( "Effective<seq2seq4repair_space>Java" , "Joshua<seq2seq4repair_space>Bloch" , Book . NON_FICTION ) ) ; books . add ( new Book ( "The<seq2seq4repair_space>Illiad" , "Homer<seq2seq4repair_space>Simpson" , Book . FICTION ) ) ; books . add ( new Book ( "Why<seq2seq4repair_space>Stock<seq2seq4repair_space>Markets<seq2seq4repair_space>Crash" , "Didier<seq2seq4repair_space>Sornette" , Book . NON_FICTION ) ) ; books . add ( new Book ( "The<seq2seq4repair_space>Netherlands" , "Mike<seq2seq4repair_space>Jones" , Book . NON_FICTION ) ) ; books . add ( new Book ( "Windows,<seq2seq4repair_space>Windows,<seq2seq4repair_space>Windows!" , "Steve<seq2seq4repair_space>Ballmer" , Book . FICTION ) ) ; books . add ( new Book ( "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>test" , "Vincent<seq2seq4repair_space>Rumsfield" , Book . FICTION ) ) ; books . add ( new Book ( "Movies" , "Mark<seq2seq4repair_space>Marksfield" , Book . NON_FICTION ) ) ; books . add ( new Book ( "DOS<seq2seq4repair_space>Capitol" , "Billy<seq2seq4repair_space>G" , Book . FICTION ) ) ; books . add ( new Book ( "Whatever" , "Jonny<seq2seq4repair_space>Zoom" , Book . FICTION ) ) ; books . add ( new Book ( "Tooty<seq2seq4repair_space>Fruity" , "Rudy<seq2seq4repair_space>O" , Book . FICTION ) ) ; setUser ( user ) ; } } return user ; } public boolean isSignedIn ( ) { } public User getUser ( ) { } public void setUser ( final User user ) { } }

Fix:
final List < Book > books = user . getBooks ( ) ;
Buggy code:
@ ManagedBean ( name = "InvoiceController" ) @ SessionScoped public class InvoiceController implements Serializable { private Invoice current ; private DataModel items = null ; @ EJB private InvoiceFacade ejbFacade ; private PaginationHelper pagination ; private int selectedItemIndex ; private List < Invoice > invoiceList ; private Integer clientId ; public InvoiceController ( ) { } public String Html ( ) { } public void setCurrent ( Invoice i ) { } public Invoice getSelected ( ) { } private InvoiceFacade getFacade ( ) { } public List < Invoice > getInvoiceList ( ) { } public PaginationHelper getPagination ( ) { } public String prepareList ( ) { } public String prepareView ( ) { } public String prepareCreate ( ) { } public String getCurrentInvoiceNumber ( ) { } public String getNextInvoiceNumber ( ) { } public String create ( ) { try { getFacade ( ) . create ( current ) ; getFacade ( ) . setNextInv ( Integer . parseInt ( current . getInvoice ( ) ) ) ; JsfUtil . addSuccessMessage ( ResourceBundle . getBundle ( "//Messages" ) . getString ( "Created" ) ) ; Double serial = Math . random ( ) ; <START_BUG> return ( "List?faces-redirect=true" + "&serial=" ) + ( serial . toString ( ) ) ; <END_BUG> } catch ( Exception e ) { JsfUtil . addErrorMessage ( e , ResourceBundle . getBundle ( "//Messages" ) . getString ( "PersistenceError" ) ) ; return null ; } } public String prepareEdit ( ) { } public String update ( ) { } public String destroy ( ) { } public String destroyAndView ( ) { } private void performDestroy ( ) { } private void updateCurrentItem ( ) { } public DataModel getItems ( ) { } private void recreateModel ( ) { } private void recreatePagination ( ) { } public String next ( ) { } public String previous ( ) { } public SelectItem [ ] getItemsAvailableSelectMany ( ) { } public SelectItem [ ] getItemsAvailableSelectOne ( ) { } public Integer getClientId ( ) { } public void setClientId ( Integer clientId ) { } @ FacesConverter ( forClass = Invoice . class ) public static class InvoicesControllerConverter implements Converter { @ Override public Object getAsObject ( FacesContext facesContext , UIComponent component , String value ) { } Integer getKey ( String value ) { } String getStringKey ( Integer value ) { } @ Override public String getAsString ( FacesContext facesContext , UIComponent component , Object object ) { } } }

Fix:
return ( "//invoices//List?faces-redirect=true" + "&serial=" ) + ( serial . toString ( ) ) ;
Buggy code:
class SpinnerTab extends RangeTab { Spinner spinner1 ; Group spinnerGroup ; Button readOnlyButton ; Button wrapButton ; Scale incrementScale ; Scale pageIncrementScale ; Scale digitsScale ; SpinnerTab ( ControlExample instance ) { } void createControlWidgets ( ) { } void createExampleGroup ( ) { } void createExampleWidgets ( ) { } void createMaximumGroup ( ) { } void createSelectionGroup ( ) { } void createIncrementGroup ( ) { } void createPageIncrementGroup ( ) { } void createDigitsGroup ( ) { Group digitsGroup = new Group ( controlGroup , SWT . NONE ) ; digitsGroup . setLayout ( new GridLayout ( ) ) ; digitsGroup . setText ( ControlExample . getResourceString ( "Digits" ) ) ; digitsGroup . setLayoutData ( new GridData ( GridData . FILL_HORIZONTAL ) ) ; digitsScale = new Scale ( digitsGroup , SWT . NONE ) ; <START_BUG> digitsScale . setMaximum ( 50 ) ; <END_BUG> digitsScale . setSelection ( 0 ) ; digitsScale . setPageIncrement ( 10 ) ; digitsScale . setIncrement ( 5 ) ; GridData data = new GridData ( GridData . FILL_HORIZONTAL ) ; data . widthHint = 100 ; digitsScale . setLayoutData ( data ) ; digitsScale . addSelectionListener ( new SelectionAdapter ( ) { public void widgetSelected ( SelectionEvent e ) { setWidgetDigits ( ) ; } } ) ; } Composite createTabFolderPage ( TabFolder tabFolder ) { } void createStyleGroup ( ) { } Control [ ] getExampleWidgets ( ) { } String getTabText ( ) { } void setExampleWidgetState ( ) { } void setWidgetIncrement ( ) { } void setWidgetMaximum ( ) { } void setWidgetMinimum ( ) { } void setWidgetPageIncrement ( ) { } void setWidgetDigits ( ) { } void setWidgetSelection ( ) { } }

Fix:
digitsScale . setMaximum ( 8 ) ;
Buggy code:
public class Property extends Task { protected String name ; protected String value ; protected File file ; protected URL url ; protected String resource ; protected Path classpath ; protected String env ; protected Reference ref ; protected String prefix ; private Project fallback ; private Object untypedValue ; private boolean valueAttributeUsed = false ; private boolean relative = false ; private File basedir ; protected boolean userProperty ; public Property ( ) { } protected Property ( boolean userProperty ) { } protected Property ( boolean userProperty , Project fallback ) { } public void setRelative ( boolean relative ) { } public void setBasedir ( File basedir ) { } public void setName ( String name ) { } public String getName ( ) { } public void setLocation ( File location ) { } public void setValue ( Object value ) { } private void internalSetValue ( Object value ) { } public void setValue ( String value ) { } public void addText ( String msg ) { } public String getValue ( ) { } public void setFile ( File file ) { } public File getFile ( ) { } public void setUrl ( URL url ) { } public URL getUrl ( ) { } public void setPrefix ( String prefix ) { this . prefix = prefix ; <START_BUG> if ( ! ( prefix . endsWith ( "." ) ) ) { <END_BUG> this . prefix += "." ; } } public String getPrefix ( ) { } public void setRefid ( Reference ref ) { } public Reference getRefid ( ) { } public void setResource ( String resource ) { } public String getResource ( ) { } public void setEnvironment ( String env ) { } public String getEnvironment ( ) { } public void setClasspath ( Path classpath ) { } public Path createClasspath ( ) { } public void setClasspathRef ( Reference r ) { } public Path getClasspath ( ) { } public void setUserProperty ( boolean userProperty ) { } public String toString ( ) { } public void execute ( ) throws BuildException { } protected void loadUrl ( URL url ) throws BuildException { } private void loadProperties ( Properties props , InputStream is , boolean isXml ) throws IOException { } protected void loadFile ( File file ) throws BuildException { } protected void loadResource ( String name ) { } protected void loadEnvironment ( String prefix ) { } protected void addProperties ( Properties props ) { } protected void addProperty ( String n , String v ) { } protected void addProperty ( String n , Object v ) { } private void resolveAllProperties ( Map props ) throws BuildException { } }

Fix:
if ( ( prefix != null ) && ( ! ( prefix . endsWith ( "." ) ) ) ) {
Buggy code:
public class GadgetToken extends TokenInfo implements Token { public GadgetToken ( String accessToken , String tokenSecret , String sessionHandle , long tokenExpireMillis ) { } public boolean isExpired ( ) { <START_BUG> return false ; <END_BUG> } public long getExpirationTimeMillis ( ) { } public Credentials getPayload ( ) { } }

Fix:
return ( System . currentTimeMillis ( ) ) > ( getExpirationTimeMillis ( ) ) ;
Buggy code:
public class ListDataProvider implements IDataProvider { private static final long serialVersionUID = 1L ; private List list ; public ListDataProvider ( List list ) { } public Iterator iterator ( final int first , final int count ) { <START_BUG> return list . listIterator ( first ) ; <END_BUG> } public int size ( ) { } public IModel model ( Object object ) { } public void detach ( ) { } }

Fix:
return list . subList ( first , ( first + count ) ) . listIterator ( ) ;
Buggy code:
public class RangeValidator < Z extends Comparable < Z > & Serializable > extends Behavior implements IValidator < Z > { private static final long serialVersionUID = 1L ; private Z minimum ; private Z maximum ; public RangeValidator ( Z minimum , Z maximum ) { } protected RangeValidator ( ) { } protected final void setRange ( Z minimum , Z maximum ) { } public void validate ( IValidatable < Z > validatable ) { Z value = validatable . getValue ( ) ; final Z min = getMinimum ( ) ; final Z max = getMaximum ( ) ; <START_BUG> if ( ( ( value . compareTo ( min ) ) < 0 ) || ( ( value . compareTo ( max ) ) > 0 ) ) { <END_BUG> ValidationError error = new ValidationError ( ) ; error . addMessageKey ( "RangeValidator" ) ; error . setVariable ( "minimum" , min ) ; error . setVariable ( "maximum" , max ) ; validatable . error ( error ) ; } } public Z getMinimum ( ) { } public Z getMaximum ( ) { } }

Fix:
if ( ( ( min != null ) && ( ( value . compareTo ( min ) ) < 0 ) ) || ( ( max != null ) && ( ( value . compareTo ( max ) ) > 0 ) ) ) {
Buggy code:
public class HomePage extends Fragment { ListView m_listView ; private ArrayAdapter < String > m_adapter ; private ArrayList < String > m_arrayList = new ArrayList < String > ( ) ; Home parentActivity ; public User currentUser ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { <START_BUG> ViewGroup rootView = ( ( ViewGroup ) ( inflater . inflate ( fragment_all_posts , container , false ) ) ) ; <END_BUG> parentActivity = ( ( Home ) ( getActivity ( ) ) ) ; m_listView = ( ( ListView ) ( rootView . findViewById ( ThreadsList ) ) ) ; m_adapter = new ArrayAdapter < String > ( parentActivity . getApplicationContext ( ) , layout . thread_list_item , m_arrayList ) ; m_listView . setAdapter ( m_adapter ) ; String constit = "wealdon" ; String android_id = "test" ; if ( ( currentUser ) != null ) { constit = currentUser . getConstituency ( ) ; android_id = currentUser . getAndroidId ( ) ; } else { Toast . makeText ( parentActivity . getApplicationContext ( ) , "Can't<seq2seq4repair_space>find<seq2seq4repair_space>current<seq2seq4repair_space>constituency" , LENGTH_SHORT ) . show ( ) ; } try { constit = URLEncoder . encode ( constit , "UTF8" ) ; } catch ( UnsupportedEncodingException e ) { e . printStackTrace ( ) ; } HomePage . GetThreads test = new HomePage . GetThreads ( ) ; test . execute ( ( ( ( "http:////sufigaffar.com//pol//?query=post&action=return&limit=10&order=timestamp&parent=0&constituency=" + constit ) + "&android_id=" ) + android_id ) ) ; return rootView ; } class GetThreads extends AsyncHttpGet { @ Override protected void onPostExecute ( String response ) { } } No newline ; at end ; of file ; }

Fix:
ViewGroup rootView = ( ( ViewGroup ) ( inflater . inflate ( fragment_home_page , container , false ) ) ) ;
Buggy code:
public abstract class DocumentComponent extends Annotable { private final String text ; private Locale language ; public DocumentComponent ( String text , Locale language , String identifier ) { } public String getText ( ) { } public void setLanguage ( Locale language ) { } public Locale getLanguage ( ) { } public boolean hasComponents ( ) { List < DocumentComponent > comps = getComponents ( ) ; <START_BUG> return ! ( comps == null ) ; <END_BUG> } public abstract List < DocumentComponent > getComponents ( ) { } public abstract void addGram ( Gram g ) { } public abstract List < Gram > getGrams ( ) { } public abstract void removeGram ( Gram g ) { } @ Override public String toString ( ) { } }

Fix:
return ( comps != null ) && ( ( comps . size ( ) ) > 0 ) ;
Buggy code:
abstract class XSDAbstractTraverser { protected static final String NO_NAME = "(no<seq2seq4repair_space>name)" ; protected static final int NOT_ALL_CONTEXT = 0 ; protected static final int PROCESSING_ALL_EL = 1 ; protected static final int GROUP_REF_WITH_ALL = 2 ; protected static final int CHILD_OF_GROUP = 4 ; protected static final int PROCESSING_ALL_GP = 8 ; protected XSDHandler fSchemaHandler = null ; protected SymbolTable fSymbolTable = null ; protected XSAttributeChecker fAttrChecker = null ; ValidationState fValidationState = new ValidationState ( ) ; XSDAbstractTraverser ( XSDHandler handler , XSAttributeChecker attrChecker ) { } void reset ( SymbolTable symbolTable ) { } void traverseAnnotationDecl ( Element annotationDecl , Object [ ] parentAttrs , boolean isGlobal , XSDocumentInfo schemaDoc ) { } private static final XSSimpleType fQNameDV = ( ( XSSimpleType ) ( SG_SchemaNS . getGlobalTypeDecl ( ATTVAL_QNAME ) ) ) ; private StringBuffer fPattern = new StringBuffer ( ) ; private final XSFacets xsFacets = new XSFacets ( ) ; class FacetInfo { XSFacets facetdata ; Element nodeAfterFacets ; short fPresentFacets ; short fFixedFacets ; } XSDAbstractTraverser . FacetInfo traverseFacets ( Element content , XSSimpleType baseValidator , XSDocumentInfo schemaDoc ) { } private boolean containsQName ( XSSimpleType type ) { } Element traverseAttrsAndAttrGrps ( Element firstAttr , XSAttributeGroupDecl attrGrp , XSDocumentInfo schemaDoc , SchemaGrammar grammar , XSComplexTypeDecl enclosingCT ) { } void reportSchemaError ( String key , Object [ ] args , Element ele ) { } void checkNotationType ( String refName , XSTypeDefinition typeDecl , Element elem ) { <START_BUG> if ( ( ( ( typeDecl . getTypeCategory ( ) ) == ( typeDecl . SIMPLE_TYPE ) ) && ( ( ( ( XSSimpleType ) ( typeDecl ) ) . getVariety ( ) ) == ( XSSimpleType . VARIETY_ATOMIC ) ) ) && ( ( ( ( XSSimpleType ) ( typeDecl ) ) . getPrimitiveKind ( ) ) == ( XSSimpleType . PRIMITIVE_NOTATION ) ) ) { <END_BUG> if ( ( ( ( ( XSSimpleType ) ( typeDecl ) ) . getDefinedFacets ( ) ) & ( XSSimpleType . FACET_ENUMERATION ) ) == 0 ) { reportSchemaError ( "enumeration-required-notation" , new Object [ ] { refName } , elem ) ; } } } protected XSParticleDecl checkOccurrences ( XSParticleDecl particle , String particleName , Element parent , int allContextFlags , long defaultVals ) { } }

Fix:
if ( ( ( ( typeDecl . getTypeCategory ( ) ) == ( XSTypeDefinition . SIMPLE_TYPE ) ) && ( ( ( ( XSSimpleType ) ( typeDecl ) ) . getVariety ( ) ) == ( XSSimpleType . VARIETY_ATOMIC ) ) ) && ( ( ( ( XSSimpleType ) ( typeDecl ) ) . getPrimitiveKind ( ) ) == ( XSSimpleType . PRIMITIVE_NOTATION ) ) ) {
Buggy code:
public class MainFrame extends IFrame { public MainFrame ( Manager manager ) { } private void createComponent ( ) { } private void init ( ) { } public void setContentArea ( PaneRender paneRender ) { JPanel contentArea = getContentArea ( ) ; contentArea . removeAll ( ) ; if ( paneRender != null ) { paneRender . setParent ( this ) ; <START_BUG> contentArea . add ( paneRender . getPane ( ) ) ; <END_BUG> } contentArea . updateUI ( ) ; } @ Override public String getString ( String key ) { } @ Override public void onMenuAction ( Object cmdId ) { } private Application app = Application . getInstance ( ) ; private Manager manager ; }

Fix:
contentArea . add ( paneRender . getPane ( ) , BorderLayout . CENTER ) ;
Buggy code:
public class NullValue extends Value { public NullValue ( ) { } @ Override public String toString ( ) { } @ Override public boolean equals ( Object other ) { } @ Override public boolean isNumeric ( ) { } @ Override public boolean isDate ( ) { } @ Override public boolean isString ( ) { } @ Override public boolean isNull ( ) { } @ Override public boolean isTime ( ) { } <START_BUG> public int compareTo ( NullValue o ) { <END_BUG> return 0 ; } }

Fix:
public int compareTo ( Value o ) {
Buggy code:
public interface IRosterItem extends IAdaptable { public String getName ( ) { } <START_BUG> public Object getParent ( ) ; <END_BUG> }

Fix:
public IRosterItem getParent ( ) ;
Buggy code:
public class ExtXptFacade { private IProject project ; private final ExecutionContext context ; public static final String CHECK_EXT = "Checks" ; public static final String STYLE_EXT = "ItemLabelProvider" ; public static final String PROPOSAL_EXT = "Proposals" ; public ExtXptFacade ( IProject project , ExecutionContext context ) { } public Object style ( String extension , EObject object ) { } private Object evaluate ( String extensionFile , String extensionName , Object ... params ) { } public List < ? > proposals ( EStructuralFeature feature , EObject ctx , List < ? > fromList ) { } public Issues check ( EObject rootObject ) { String checkFile = ( path ( rootObject ) ) + ( ExtXptFacade . CHECK_EXT ) ; List < EObject > all = new ArrayList < EObject > ( ) ; all . add ( rootObject ) ; EObject rootContainer = EcoreUtil . getRootContainer ( rootObject ) ; TreeIterator < EObject > iter = rootContainer . eAllContents ( ) ; while ( iter . hasNext ( ) ) all . add ( iter . next ( ) ) ; <START_BUG> IssuesImpl issuesImpl = new IssuesImpl ( ) ; <END_BUG> IXtendXpandProject extxptProject = Activator . getExtXptModelManager ( ) . findProject ( project ) ; if ( extxptProject != null ) { IXtendXpandResource extxptResource = extxptProject . findExtXptResource ( checkFile , FILE_EXTENSION ) ; if ( extxptResource != null ) { ExtensionFile file = ( ( ExtensionFile ) ( extxptResource . getExtXptResource ( ) ) ) ; try { file . check ( context , all , issuesImpl , false ) ; } catch ( IllegalArgumentException e ) { } catch ( Exception e ) { EEPlugin . logError ( "Exception<seq2seq4repair_space>during<seq2seq4repair_space>check<seq2seq4repair_space>evaluation" , e ) ; } } } else { EEPlugin . logWarning ( ( ( "Enable<seq2seq4repair_space>Xtend//Xpand-Nature<seq2seq4repair_space>for<seq2seq4repair_space>'" + ( project . getName ( ) ) ) + "'<seq2seq4repair_space>to<seq2seq4repair_space>check<seq2seq4repair_space>models." ) ) ; } return issuesImpl ; } private String path ( EObject object ) { } public IProject getProject ( ) { } }

Fix:
Issues issuesImpl = new IssuesImpl ( ) ;
Buggy code:
public class ThumbnailImageResource extends DynamicImageResource { private static final long serialVersionUID = 1L ; private static final Logger log = LoggerFactory . getLogger ( ThumbnailImageResource . class ) ; private final WebResource unscaledImageResource ; private final int maxSize ; private int scaleHints = Image . SCALE_SMOOTH ; private transient byte [ ] thumbnail ; public ThumbnailImageResource ( WebResource unscaledImageResource , int maxSize ) { } @ Override protected byte [ ] getImageData ( ) { } protected final BufferedImage getScaledImageInstance ( ) { InputStream is = null ; BufferedImage originalImage = null ; try { is = unscaledImageResource . getResourceStream ( ) . getInputStream ( ) ; originalImage = ImageIO . read ( is ) ; if ( originalImage == null ) { throw new IOException ( "unable<seq2seq4repair_space>to<seq2seq4repair_space>read<seq2seq4repair_space>image" ) ; } } catch ( IOException e ) { throw new WicketRuntimeException ( e ) ; } catch ( ResourceStreamNotFoundException e ) { throw new WicketRuntimeException ( e ) ; } finally { if ( is != null ) { try { is . close ( ) ; } catch ( IOException e ) { ThumbnailImageResource . log . error ( e . getMessage ( ) , e ) ; } } } int originalWidth = originalImage . getWidth ( ) ; int originalHeight = originalImage . getHeight ( ) ; if ( ( originalWidth > ( maxSize ) ) || ( originalHeight > ( maxSize ) ) ) { final int newWidth ; final int newHeight ; if ( originalWidth > originalHeight ) { newWidth = maxSize ; newHeight = ( ( maxSize ) * originalHeight ) // originalWidth ; } else { newWidth = ( ( maxSize ) * originalWidth ) // originalHeight ; newHeight = maxSize ; } Image image = originalImage . getScaledInstance ( newWidth , newHeight , scaleHints ) ; <START_BUG> BufferedImage bufferedImage = new BufferedImage ( newWidth , newHeight , BufferedImage . TYPE_INT_BGR ) ; <END_BUG> bufferedImage . createGraphics ( ) . drawImage ( image , 0 , 0 , null ) ; return bufferedImage ; } return originalImage ; } public final synchronized void setScaleHints ( int scaleHints ) { } @ Override public synchronized void invalidate ( ) { } }

Fix:
BufferedImage bufferedImage = new BufferedImage ( newWidth , newHeight , BufferedImage . TYPE_INT_ARGB ) ;
Buggy code:
public final class CommandCallback implements ICallback { private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle . getBundle ( CommandCallback . class . getName ( ) ) ; private final Set loggedCommandIds = new HashSet ( ) ; private final Map registeredListeners = new HashMap ( ) ; private final IWorkbench workbench ; public CommandCallback ( final IWorkbench workbenchToUse ) { } public void addPropertyChangeListener ( final String commandId , final IPropertyChangeListener listener ) { } public final Integer getAccelerator ( final String commandId ) { } public final String getAcceleratorText ( final String commandId ) { } public boolean isAcceleratorInUse ( int accelerator ) { } public final boolean isActive ( final String commandId ) { if ( commandId != null ) { final ICommand command = workbench . getCommandSupport ( ) . getCommandManager ( ) . getCommand ( commandId ) ; if ( ( ! ( command . isDefined ( ) ) ) && ( ! ( loggedCommandIds . contains ( commandId ) ) ) ) { final StringBuffer message = new StringBuffer ( ) ; message . append ( "The<seq2seq4repair_space>command<seq2seq4repair_space>'" ) ; message . append ( command . getId ( ) ) ; message . append ( "'<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>defined,<seq2seq4repair_space>but<seq2seq4repair_space>is<seq2seq4repair_space>being<seq2seq4repair_space>asked<seq2seq4repair_space>if<seq2seq4repair_space>it<seq2seq4repair_space>is<seq2seq4repair_space>active.<seq2seq4repair_space>Are<seq2seq4repair_space>you<seq2seq4repair_space>using<seq2seq4repair_space>an<seq2seq4repair_space>actionDefinitionId<seq2seq4repair_space>without<seq2seq4repair_space>defining<seq2seq4repair_space>a<seq2seq4repair_space>command?" ) ; IStatus status = new Status ( IStatus . ERROR , WorkbenchPlugin . PI_WORKBENCH , 0 , Util . translateString ( CommandCallback . RESOURCE_BUNDLE , "undefinedCommand.WarningMessage" ) , null ) ; WorkbenchPlugin . log ( message . toString ( ) , status ) ; loggedCommandIds . add ( commandId ) ; command . addCommandListener ( new ICommandListener ( ) { public final void commandChanged ( final CommandEvent commandEvent ) { if ( command . isDefined ( ) ) { command . removeCommandListener ( this ) ; loggedCommandIds . remove ( commandId ) ; } } } ) ; <START_BUG> return false ; <END_BUG> } return workbench . getActivitySupport ( ) . getActivityManager ( ) . getIdentifier ( command . getId ( ) ) . isEnabled ( ) ; } return true ; } public final void removePropertyChangeListener ( final String commandId , final IPropertyChangeListener listener ) { } }

Fix:
return true ;