nus-yam/ex-repair huggingface dataset:
Buggy code:
public abstract class RwtScoutBasicFieldComposite < T extends IBasicField < ? > > extends RwtScoutValueFieldComposite < T > { private boolean m_validateOnAnyKey ; private RwtScoutBasicFieldComposite < T > . P_RwtValidateOnAnyKeyModifyListener m_validateOnAnyKeyModifyListener ; private RwtScoutBasicFieldComposite < T > . P_RwtUpdateDisplayTextOnModifyModifyListener m_updateDisplayTextOnModifyListener = new P_RwtUpdateDisplayTextOnModifyModifyListener ( ) ; private boolean m_updateDisplayTextOnModify ; @ Override protected void attachScout ( ) { } @ Override public Text getUiField ( ) { } @ Override protected void setDisplayTextFromScout ( String newText ) { } private void setValidateOnAnyKeyFromScout ( boolean b ) { } protected void setUpdateDisplayTextOnModifyFromScout ( boolean b ) { } private void addUpdateDisplayTextOnModifyListener ( ) { } private void removeUpdateDisplayTextOnModifyListener ( ) { } protected void addValidateOnAnyKeyModifyListener ( ) { } protected void removeValidateOnAnyKeyModifyListener ( ) { } @ Override protected void handleScoutPropertyChange ( String name , Object newValue ) { } @ Override protected void handleUiInputVerifier ( boolean doit ) { if ( ! doit ) { return ; } final String text = getUiField ( ) . getText ( ) ; <START_BUG> if ( ( CompareUtility . equals ( text , RwtScoutBasicFieldComposite . getScoutObject ( ) . getDisplayText ( ) ) ) && ( ( RwtScoutBasicFieldComposite . getScoutObject ( ) . getErrorStatus ( ) ) == null ) ) { <END_BUG> return ; } final Holder < Boolean > result = new Holder < Boolean > ( Boolean . class , false ) ; Runnable t = new Runnable ( ) { @ Override public void run ( ) { boolean b = getScoutObject ( ) . getUIFacade ( ) . setTextFromUI ( text , false ) ; result . setValue ( b ) ; } } ; JobEx job = RwtScoutBasicFieldComposite . getUiEnvironment ( ) . invokeScoutLater ( t , 0 ) ; try { job . join ( 2345 ) ; } catch ( InterruptedException e ) { } doit = result . getValue ( ) ; RwtScoutBasicFieldComposite . getUiEnvironment ( ) . dispatchImmediateUiJobs ( ) ; } @ Override protected void handleUiFocusGained ( ) { } private class P_RwtValidateOnAnyKeyModifyListener implements ModifyListener { private static final long serialVersionUID = 1L ; @ Override public void modifyText ( ModifyEvent e ) { } private void sendVerifyToScoutAndIgnoreResponses ( ) { } } private class P_RwtUpdateDisplayTextOnModifyModifyListener implements ModifyListener { private static final long serialVersionUID = 1L ; @ Override public void modifyText ( ModifyEvent event ) { } } }

Fix:
if ( ( ( ! ( m_updateDisplayTextOnModify ) ) && ( CompareUtility . equals ( text , RwtScoutBasicFieldComposite . getScoutObject ( ) . getDisplayText ( ) ) ) ) && ( ( RwtScoutBasicFieldComposite . getScoutObject ( ) . getErrorStatus ( ) ) == null ) ) {
Buggy code:
public class ExtractNames { public static void main ( String [ ] args ) throws IOException { <START_BUG> IntCoopIndex target = new IntCoopIndex ( new Directory ( "//mnt//scratch//jfoley//clue12a.sdm.ints" ) ) ; <END_BUG> IntCoopIndex index = new IntCoopIndex ( new Directory ( "dbpedia.ints" ) ) ; int N = 10 ; PhraseDetector detector = index . loadPhraseDetector ( N , target ) ; ExtractNames234 . CorpusTagger tagger = new ExtractNames234 . CorpusTagger ( detector , target . getCorpus ( ) ) ; Debouncer msg2 = new Debouncer ( 2000 ) ; Directory output = target . baseDir ; try ( PhraseHitsWriter writer = new PhraseHitsWriter ( output , "dbpedia" ) ) { tagger . tag ( msg2 , ( phraseId , docId , hitStart , hitSize , terms ) -> { IntList data_found = IntList . clone ( terms , hitStart , hitSize ) ; writer . onPhraseHit ( phraseId , docId , hitStart , hitSize , data_found ) ; } ) ; } } }

Fix:
IntCoopIndex target = new IntCoopIndex ( new Directory ( "//mnt//scratch//jfoley//inex-page-djvu.ints" ) ) ;
Buggy code:
public class ModifiersPatternTestCase extends TestCase { public ModifiersPatternTestCase ( String name ) { } World world ; public void testMatch ( ) { } private ModifiersPattern makeModifiersPattern ( String pattern ) { } private void checkMatch ( String pattern , int [ ] shouldMatch , int [ ] shouldFail ) { } private void checkMatch ( ModifiersPattern p , int [ ] matches , boolean shouldMatch ) { } public void testSerialization ( ) throws IOException { } private void checkSerialization ( String string ) throws IOException { ModifiersPattern p = makeModifiersPattern ( string ) ; ByteArrayOutputStream bo = new ByteArrayOutputStream ( ) ; DataOutputStream out = new DataOutputStream ( bo ) ; p . write ( out ) ; out . close ( ) ; ByteArrayInputStream bi = new ByteArrayInputStream ( bo . toByteArray ( ) ) ; <START_BUG> DataInputStream in = new DataInputStream ( bi ) ; <END_BUG> ModifiersPattern newP = ModifiersPattern . read ( in ) ; assertEquals ( "write//read" , p , newP ) ; } }

Fix:
VersionedDataInputStream in = new VersionedDataInputStream ( bi ) ;
Buggy code:
@ Path ( "inputs" ) public class InputResource implements Resource < Input > { @ POST @ Path ( "//store" ) @ Produces ( "application//json" ) @ Consumes ( "application//json" ) @ Override public Input store ( Input input ) { } @ DELETE @ Path ( "//delete//{id}" ) @ Override public void delete ( long id ) { } @ GET @ Path ( "//get//{id}" ) @ Produces ( "application//json" ) @ Override public Input get ( long id ) { } @ GET @ Produces ( "application//json" ) @ Override public List < Input > getAll ( ) { } @ POST @ Path ( "//update" ) @ Consumes ( "application//json" ) @ Produces ( "application//json" ) @ Override public Input update ( Input input ) { } @ GET <START_BUG> @ Path ( "//get//relationalInputs" ) <END_BUG> @ Produces ( "application//json" ) public List < Input > listRelationalInputs ( ) { try { List < Input > inputs = HibernateUtil . queryCriteria ( TableInput . class ) ; inputs . addAll ( HibernateUtil . queryCriteria ( FileInput . class ) ) ; return inputs ; } catch ( EntityStorageException e ) { throw new WebException ( e , Status . BAD_REQUEST ) ; } } }

Fix:
@ Path ( "//relationalInputs" )
Buggy code:
public class TestEntityManagerMerge extends SingleEMTestCase { public void setUp ( ) { <START_BUG> setUp ( AllFieldTypes . class , Person . class ) ; <END_BUG> } public void testMerge ( ) { } public void testMergeExistingEntity ( ) { } public static void main ( String [ ] args ) { } }

Fix:
setUp ( AllFieldTypes . class , Person . class , DROP_TABLES ) ;
Buggy code:
public class VisionServer { public static void main ( String [ ] args ) throws IOException { new VisionServerThread ( ) . start ( ) ; <START_BUG> new VisionProcessingThread ( 0 , Constants . TargetType . tower ) . start ( ) ; <END_BUG> } No newline ; at end ; of file ; }

Fix:
new VisionProcessingThread ( 1 , Constants . TargetType . tower ) . start ( ) ;
Buggy code:
public class TestAddTaxonomy extends LuceneTestCase { private void dotest ( int ncats , final int range ) throws Exception { } private OrdinalMap randomOrdinalMap ( ) throws IOException { } private void validate ( Directory dest , Directory src , OrdinalMap ordMap ) throws Exception { } public void testAddEmpty ( ) throws Exception { } public void testAddToEmpty ( ) throws Exception { } public void testBig ( ) throws Exception { } public void testMedium ( ) throws Exception { } public void testSimple ( ) throws Exception { } public void testConcurrency ( ) throws Exception { <START_BUG> final int numCategories = atLeast ( 5000 ) ; <END_BUG> Directory src = newDirectory ( ) ; DirectoryTaxonomyWriter tw = new DirectoryTaxonomyWriter ( src ) ; for ( int i = 0 ; i < numCategories ; i ++ ) { tw . addCategory ( new CategoryPath ( "a" , Integer . toString ( i ) ) ) ; } tw . close ( ) ; Directory dest = newDirectory ( ) ; final DirectoryTaxonomyWriter destTW = new DirectoryTaxonomyWriter ( dest ) ; Thread t = new Thread ( ) { @ Override public void run ( ) { for ( int i = 0 ; i < numCategories ; i ++ ) { try { destTW . addCategory ( new CategoryPath ( "a" , Integer . toString ( i ) ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } } } } ; t . start ( ) ; OrdinalMap map = new MemoryOrdinalMap ( ) ; destTW . addTaxonomy ( src , map ) ; t . join ( ) ; destTW . close ( ) ; DirectoryTaxonomyReader dtr = new DirectoryTaxonomyReader ( dest ) ; assertEquals ( ( numCategories + 2 ) , dtr . getSize ( ) ) ; HashSet < CategoryPath > categories = new HashSet < CategoryPath > ( ) ; for ( int i = 1 ; i < ( dtr . getSize ( ) ) ; i ++ ) { CategoryPath cat = dtr . getPath ( i ) ; assertTrue ( ( ( "category<seq2seq4repair_space>" + cat ) + "<seq2seq4repair_space>already<seq2seq4repair_space>existed" ) , categories . add ( cat ) ) ; } dtr . close ( ) ; IOUtils . close ( src , dest ) ; } }

Fix:
final int numCategories = atLeast ( 10000 ) ;
Buggy code:
public class CommandExecutor { public boolean execute ( String cmd , CommandSender sender , String label , String [ ] args ) { Command command = Command . createCommand ( cmd , args ) ; if ( command != null ) { <START_BUG> command . execute ( args ) ; <END_BUG> return true ; } else { return false ; } } public boolean execute ( String cmd , CommandSender sender , String label ) { } }

Fix:
command . execute ( sender , args ) ;
Buggy code:
public class CardHand { private ArrayList < PlayingCard > hand ; private String player = new String ( ) ; public CardHand ( ) { } public CardHand ( String player ) { } public String toColoredString ( ) { } @ Override public String toString ( ) { } public String toMaskedString ( ) { } public String getPlayer ( ) { } public int getHandValue ( ) { } public boolean isHandBlackjack ( ) { if ( ( getBlackjackHandValue ( ) ) != 21 ) return false ; boolean containsTen = false ; boolean containsAce = false ; for ( int i = 0 ; i < ( hand . size ( ) ) ; i ++ ) { if ( ( hand . get ( i ) . getValue ( ) ) >= 10 ) containsTen = true ; else if ( ( hand . get ( i ) . getValue ( ) ) == 1 ) containsAce = true ; } <START_BUG> return containsTen && containsAce ; <END_BUG> } public boolean isBlackjackHandSoft ( ) { } public int getBlackjackHandValue ( ) { } public void clear ( ) { } public void addCard ( PlayingCard c ) { } public void removeCard ( PlayingCard c ) { } public void removeCard ( int position ) { } public int getCardCount ( ) { } public PlayingCard getCard ( int position ) { } public void sortBySuit ( ) { } public void sortByValue ( ) { } }

Fix:
return ( containsTen && containsAce ) && ( ( hand . size ( ) ) == 2 ) ;
Buggy code:
public class TreeColumn extends Item { Tree parent ; int width ; boolean resizable = true ; int textWidth ; public TreeColumn ( Tree parent , int style ) { } public TreeColumn ( Tree parent , int style , int index ) { } public void addControlListener ( ControlListener listener ) { } public void addSelectionListener ( SelectionListener listener ) { } static Tree checkNull ( Tree tree ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } public void dispose ( ) { } void dispose ( boolean notifyParent ) { } public int getAlignment ( ) { } Rectangle getBounds ( ) { } int getIndex ( ) { } public Tree getParent ( ) { } public boolean getResizable ( ) { } public int getWidth ( ) { } int getX ( ) { int index = getIndex ( ) ; if ( index == 0 ) <START_BUG> return 0 ; <END_BUG> TreeColumn previousColumn = parent . getColumns ( ) [ ( index - 1 ) ] ; return ( previousColumn . getX ( ) ) + ( previousColumn . width ) ; } void paint ( GC gc ) { } public void pack ( ) { } public void removeControlListener ( ControlListener listener ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setAlignment ( int alignment ) { } public void setImage ( Image value ) { } public void setResizable ( boolean value ) { } public void setText ( String value ) { } public void setWidth ( int value ) { } void updateFont ( GC gc ) { } }

Fix:
return - ( parent . horizontalOffset ) ;
Buggy code:
public class yearlist extends ActionBarActivity { @ Override protected void onCreate ( Bundle savedInstanceState ) { } public void clickHandler ( View view ) { if ( ( Integer . parseInt ( view . getTag ( ) . toString ( ) ) ) == 1 ) { Intent intent = new Intent ( this , subject_list . class ) ; startActivity ( intent ) ; } else <START_BUG> Toast . makeText ( this , "This<seq2seq4repair_space>part<seq2seq4repair_space>is<seq2seq4repair_space>coming<seq2seq4repair_space>soon!" , LENGTH_SHORT ) . show ( ) ; <END_BUG> } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
Toast . makeText ( this , "Coming<seq2seq4repair_space>Soon!" , LENGTH_SHORT ) . show ( ) ;
Buggy code:
public abstract class AbstractSubsystemUpdate < E extends AbstractSubsystemElement < E > , R > extends AbstractModelElementUpdate < E > { private static final long serialVersionUID = 5066326932283149448L ; private final String subsystemNamespaceUri ; private final boolean requiresRestart ; protected AbstractSubsystemUpdate ( final String subsystemNamespaceUri , final boolean requiresRestart ) { } protected AbstractSubsystemUpdate ( final String subsystemNamespaceUri ) { } public final boolean requiresRestart ( ) { } public final String getSubsystemNamespaceUri ( ) { } protected abstract < P > void applyUpdate ( UpdateContext updateContext , UpdateResultHandler < ? super R , P > resultHandler , P param ) { } <START_BUG> protected void applyUpdateBootAction ( UpdateContext updateContext ) { <END_BUG> applyUpdate ( updateContext , NULL , null ) ; } public abstract AbstractSubsystemUpdate < E , ? > getCompensatingUpdate ( E original ) { } }

Fix:
protected void applyUpdateBootAction ( BootUpdateContext updateContext ) {
Buggy code:
public class FormTagTests extends AbstractHtmlElementTagTests { private static final String REQUEST_URI = "//my//form" ; private static final String QUERY_STRING = "foo=bar" ; private FormTag tag ; private MockHttpServletRequest request ; @ Override @ SuppressWarnings ( "serial" ) protected void onSetUp ( ) { } @ Override protected void extendRequest ( MockHttpServletRequest request ) { } public void testWriteForm ( ) throws Exception { } public void testWithActionFromRequest ( ) throws Exception { } public void testPrependServletPath ( ) throws Exception { } public void testWithNullResolvedCommand ( ) throws Exception { try { <START_BUG> tag . setCommandName ( null ) ; <END_BUG> tag . doStartTag ( ) ; fail ( "Must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>able<seq2seq4repair_space>to<seq2seq4repair_space>have<seq2seq4repair_space>a<seq2seq4repair_space>command<seq2seq4repair_space>name<seq2seq4repair_space>that<seq2seq4repair_space>resolves<seq2seq4repair_space>to<seq2seq4repair_space>null" ) ; } catch ( IllegalArgumentException ex ) { } } public void testXSSScriptingExploitWhenActionIsResolvedFromQueryString ( ) throws Exception { } public void testGet ( ) throws Exception { } public void testPost ( ) throws Exception { } public void testPut ( ) throws Exception { } public void testDelete ( ) throws Exception { } public void testCustomMethodParameter ( ) throws Exception { } public void testClearAttributesOnFinally ( ) throws Exception { } public void testRequestDataValueProcessorHooks ( ) throws Exception { } private String getFormTag ( String output ) { } private String getInputTag ( String output ) { } private static void assertFormTagOpened ( String output ) { } private static void assertFormTagClosed ( String output ) { } }

Fix:
tag . setCommandName ( "${null}" ) ;
Buggy code:
public class Ear extends Jar { private static final FileUtils FILE_UTILS = FileUtils . getFileUtils ( ) ; private File deploymentDescriptor ; private boolean descriptorAdded ; private static final String XML_DESCRIPTOR_PATH = "META-INF//application.xml" ; public Ear ( ) { } public void setEarfile ( File earFile ) { } public void setAppxml ( File descr ) { } public void addArchives ( ZipFileSet fs ) { } protected void initZipOutputStream ( ZipOutputStream zOut ) throws IOException , BuildException { } protected void zipFile ( File file , ZipOutputStream zOut , String vPath , int mode ) throws IOException { String vPathLowerCase = vPath . toLowerCase ( Locale . ENGLISH ) ; if ( Ear . XML_DESCRIPTOR_PATH . equals ( vPathLowerCase ) ) { if ( ( ( ( deploymentDescriptor ) != null ) || ( ! ( Ear . FILE_UTILS . fileNameEquals ( deploymentDescriptor , file ) ) ) ) || ( descriptorAdded ) ) { <START_BUG> logOnFirstPass ( ( ( ( ( ( ( ( "Warning:<seq2seq4repair_space>selected<seq2seq4repair_space>" + ( archiveType ) ) + "<seq2seq4repair_space>files<seq2seq4repair_space>include<seq2seq4repair_space>a<seq2seq4repair_space>" ) + ( Ear . XML_DESCRIPTOR_PATH ) ) + "<seq2seq4repair_space>which<seq2seq4repair_space>will" ) + "<seq2seq4repair_space>be<seq2seq4repair_space>ignored<seq2seq4repair_space>(please<seq2seq4repair_space>use<seq2seq4repair_space>appxml<seq2seq4repair_space>attribute<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( archiveType ) ) + "<seq2seq4repair_space>task)" ) , MSG_WARN ) ; <END_BUG> } else { super . zipFile ( file , zOut , vPath , mode ) ; descriptorAdded = true ; } } else { super . zipFile ( file , zOut , vPath , mode ) ; } } protected void cleanUp ( ) { } }

Fix:
logWhenWriting ( ( ( ( ( ( ( ( "Warning:<seq2seq4repair_space>selected<seq2seq4repair_space>" + ( archiveType ) ) + "<seq2seq4repair_space>files<seq2seq4repair_space>include<seq2seq4repair_space>a<seq2seq4repair_space>" ) + ( Ear . XML_DESCRIPTOR_PATH ) ) + "<seq2seq4repair_space>which<seq2seq4repair_space>will" ) + "<seq2seq4repair_space>be<seq2seq4repair_space>ignored<seq2seq4repair_space>(please<seq2seq4repair_space>use<seq2seq4repair_space>appxml<seq2seq4repair_space>attribute<seq2seq4repair_space>to<seq2seq4repair_space>" ) + ( archiveType ) ) + "<seq2seq4repair_space>task)" ) , MSG_WARN ) ;
Buggy code:
public class ArrayPopupListener implements MouseListener { public ArrayPopupListener ( GUImain main , List < Object > info ) { } private final GUImain main ; private final List < Object > info ; @ Override public void mouseClicked ( MouseEvent e ) { TablePopupModel model = new TablePopupModel ( info ) ; JTable table = new JTable ( model ) ; try { table . getColumn ( "<seq2seq4repair_space>" ) . setCellRenderer ( new TablePopupRenderer ( ) ) ; } catch ( IllegalArgumentException e1 ) { } table . getTableHeader ( ) . setReorderingAllowed ( false ) ; for ( int i = 0 ; i < ( table . getColumnModel ( ) . getColumnCount ( ) ) ; i ++ ) { table . getColumnModel ( ) . getColumn ( i ) . setMinWidth ( 28 ) ; } <START_BUG> ComponentPopup . createPopUp ( main , table , e . getLocationOnScreen ( ) . x , e . getLocationOnScreen ( ) . y , 250 , 120 , SOUTH ) ; <END_BUG> } @ Override public void mouseEntered ( MouseEvent arg0 ) { } @ Override public void mouseExited ( MouseEvent arg0 ) { } @ Override public void mousePressed ( MouseEvent arg0 ) { } @ Override public void mouseReleased ( MouseEvent arg0 ) { } }

Fix:
ComponentPopup . createPopUp ( main , table , main . getGlassPane ( ) . getMousePosition ( ) . x , main . getGlassPane ( ) . getMousePosition ( ) . y , 250 , 120 , SOUTH ) ;
Buggy code:
public class BlockedJobsDialog extends IconAndMessageDialog { private ProgressTreeViewer viewer ; private String blockedTaskName = null ; private Button cancelSelected ; private Cursor arrowCursor ; private Cursor waitCursor ; private IProgressMonitor blockingMonitor ; private JobTreeElement blockedElement = new BlockedJobsDialog . BlockedUIElement ( ) ; private class BlockedUIElement extends JobTreeElement { Object [ ] getChildren ( ) { } String getDisplayString ( ) { } public Image getDisplayImage ( ) { } Object getParent ( ) { } boolean hasChildren ( ) { } boolean isActive ( ) { } boolean isJobInfo ( ) { } public void cancel ( ) { } public boolean isCancellable ( ) { } } public BlockedJobsDialog ( Shell parentShell , IProgressMonitor blocking , IStatus blockingStatus ) { } protected Control createDialogArea ( Composite parent ) { } protected int getMessageLabelStyle ( ) { } void showJobDetails ( Composite parent ) { } private ProgressTreeContentProvider getContentProvider ( ) { } protected Control createButtonBar ( Composite parent ) { } private Button createButton ( Composite parent , String text , SelectionListener listener ) { } private void clearCursors ( ) { } private void clearCursor ( Control control ) { } protected void configureShell ( Shell shell ) { } private void setMessage ( String messageString ) { } protected Image getImage ( ) { <START_BUG> return JFaceResources . getImageRegistry ( ) . get ( DLG_IMG_LOCKED ) ; <END_BUG> } public boolean close ( ) { } public void setBlockedTaskName ( String taskName ) { } }

Fix:
return JFaceResources . getImageRegistry ( ) . get ( DLG_IMG_WARNING ) ;
Buggy code:
@ Service public class MenuService implements MenuServiceInterface { @ Autowired private MenuRepository repository ; @ Override public List < Menu > getAll ( ) { } @ Override public Menu getOne ( long id ) { <START_BUG> return repository . getOne ( id ) ; <END_BUG> } @ Override public Menu save ( Menu menu ) { } @ Override public void delete ( long id ) { } }

Fix:
return repository . findOne ( id ) ;
Buggy code:
public class RegMobs extends NarutoCraft { public static void regMobsList ( ) { <START_BUG> EntityRegistry . registerGlobalEntityID ( EntityKyuubi . class , "EntityKyuubi" , 4809 , 2 , 2 ) ; <END_BUG> } }

Fix:
EntityRegistry . registerGlobalEntityID ( EntityKyuubi . class , "EntityKyuubi" , EntityRegistry . findGlobalUniqueEntityId ( ) , 2 , 2 ) ;
Buggy code:
public class SingleFragmentHelper { public static void setFragment ( MainActivity mainActivity , Fragment fragment ) { ViewPager viewPager = mainActivity . getViewPager ( ) ; ScreenSlidePageAdapter pagerAdapter = ( ( ScreenSlidePageAdapter ) ( viewPager . getAdapter ( ) ) ) ; int fragmentIndex = pagerAdapter . addFragment ( fragment ) ; pagerAdapter . notifyDataSetChanged ( ) ; <START_BUG> viewPager . setCurrentItem ( fragmentIndex ) ; <END_BUG> } }

Fix:
viewPager . setCurrentItem ( fragmentIndex , false ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient @ Ignore ( "AS7-2741" ) public class ModelControllerMBeanTestCase { static final String HOST = "localhost" ; static final int PORT = 1090 ; static final ObjectName MODEL_FILTER = ModelControllerMBeanTestCase . createObjectName ( ( ( Constants . DOMAIN ) + ":*" ) ) ; static final ObjectName ROOT_MODEL_NAME = Constants . ROOT_MODEL_NAME ; static JMXConnector connector ; static MBeanServerConnection connection ; static ModelControllerClient client ; @ BeforeClass public static void initialize ( ) throws Exception { } private static void enableJMXConnector ( ModelControllerClient client ) throws IOException { } @ AfterClass public static void closeConnection ( ) throws Exception { } private static void disableJMXConnector ( ModelControllerClient client ) throws IOException { } @ Test public void testAllMBeanInfos ( ) throws Exception { } @ Test public void testSystemProperties ( ) throws Exception { } @ Test public void testDeploymentViaJmx ( ) throws Exception { } private void assertNoMBean ( ObjectName name ) throws Exception { } private String [ ] getSystemPropertyNames ( ) throws Exception { } private static ObjectName createObjectName ( String name ) { } private static MBeanServerConnection setupAndGetConnection ( ) throws Exception { <START_BUG> String urlString = System . getProperty ( "jmx.service.url" , ( ( ( "service:jmx:remote:////" + ( ModelControllerMBeanTestCase . HOST ) ) + ":" ) + ( ModelControllerMBeanTestCase . PORT ) ) ) ; <END_BUG> JMXServiceURL serviceURL = new JMXServiceURL ( urlString ) ; ModelControllerMBeanTestCase . connector = JMXConnectorFactory . connect ( serviceURL , null ) ; return ModelControllerMBeanTestCase . connector . getMBeanServerConnection ( ) ; } }

Fix:
String urlString = System . getProperty ( "jmx.service.url" , ( ( ( "service:jmx:remoting-jmx:////" + ( ModelControllerMBeanTestCase . HOST ) ) + ":" ) + ( ModelControllerMBeanTestCase . PORT ) ) ) ;
Buggy code:
public class DummyServerInterceptor implements JServerRequestInterceptor { private static int SERVER_CTX_ID = 50 ; private static int CLIENT_CTX_ID = 51 ; private String interceptorName = null ; public DummyServerInterceptor ( String name ) { } public void receive_request ( JServerRequestInfo jri ) throws IOException { } public void send_reply ( JServerRequestInfo jri ) throws IOException { <START_BUG> jri . add_reply_service_context ( new DummyServerServiceContext ( DummyServerInterceptor . SERVER_CTX_ID , InetAddress . getLocalHost ( ) . getHostName ( ) ) , true ) ; <END_BUG> } public String name ( ) { } public void send_exception ( JServerRequestInfo jri ) throws IOException { } public void send_other ( JServerRequestInfo jri ) throws IOException { } }

Fix:
jri . add_reply_service_context ( new DummyServerServiceContext ( DummyServerInterceptor . SERVER_CTX_ID , InetAddress . getLocalHost ( ) . getHostName ( ) ) ) ;
Buggy code:
public interface ICommitterBolt extends IComponent { void prepare ( Map conf , TopologyContext context , TransactionAttempt attempt ) { } void execute ( Tuple tuple ) { } <START_BUG> void commit ( TransactionalOutputCollector collector ) ; <END_BUG> }

Fix:
void commit ( BatchOutputCollector collector ) ;
Buggy code:
public class TracingViewNodeDialog extends DataAwareNodeDialogPane implements ActionListener , ComponentListener { private JPanel panel ; private ITracingCanvas < ? > canvas ; private boolean resized ; private BufferedDataTable nodeTable ; private BufferedDataTable edgeTable ; private BufferedDataTable tracingTable ; private BufferedDataTable shapeTable ; private TracingViewSettings set ; private JButton resetWeightsButton ; private JButton resetCrossButton ; private JButton resetFilterButton ; private JCheckBox exportAsSvgBox ; private JButton switchButton ; protected TracingViewNodeDialog ( ) { } @ Override protected void loadSettingsFrom ( NodeSettingsRO settings , PortObject [ ] input ) throws NotConfigurableException { nodeTable = ( ( BufferedDataTable ) ( input [ 0 ] ) ) ; edgeTable = ( ( BufferedDataTable ) ( input [ 1 ] ) ) ; tracingTable = ( ( BufferedDataTable ) ( input [ 2 ] ) ) ; shapeTable = ( ( BufferedDataTable ) ( input [ 3 ] ) ) ; set . loadSettings ( settings ) ; if ( ( shapeTable ) == null ) { set . setShowGis ( false ) ; switchButton . setEnabled ( false ) ; } else { switchButton . setEnabled ( true ) ; } exportAsSvgBox . setSelected ( set . isExportAsSvg ( ) ) ; <START_BUG> resized = false ; <END_BUG> panel . addComponentListener ( this ) ; String warning = updateCanvas ( ) ; if ( warning != null ) { new Thread ( new NodeDialogWarningThread ( panel , warning ) ) . start ( ) ; } } @ Override protected void saveSettingsTo ( NodeSettingsWO settings ) throws InvalidSettingsException { } @ Override public void actionPerformed ( ActionEvent e ) { } @ Override public void componentResized ( ComponentEvent e ) { } @ Override public void componentMoved ( ComponentEvent e ) { } @ Override public void componentShown ( ComponentEvent e ) { } @ Override public void componentHidden ( ComponentEvent e ) { } private String updateCanvas ( ) throws NotConfigurableException { } private void updateSettings ( ) { } }

Fix:
resized = ( set . getCanvasSize ( ) ) == null ;
Buggy code:
public class NavigationDrawerFragment extends Fragment { private static final String STATE_SELECTED_POSITION = "selected_navigation_drawer_position" ; private static final String PREF_USER_LEARNED_DRAWER = "navigation_drawer_learned" ; private NavigationDrawerFragment . NavigationDrawerCallbacks mCallbacks ; private ActionBarDrawerToggle mDrawerToggle ; private DrawerLayout mDrawerLayout ; private ListView mDrawerListView ; private View mFragmentContainerView ; private int mCurrentSelectedPosition = 0 ; private boolean mFromSavedInstanceState ; private boolean mUserLearnedDrawer ; public NavigationDrawerFragment ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } public boolean isDrawerOpen ( ) { } public void setUp ( int fragmentId , DrawerLayout drawerLayout ) { } private void selectItem ( int position ) { } @ Override public void onAttach ( Activity activity ) { } @ Override public void onDetach ( ) { } @ Override public void onSaveInstanceState ( Bundle outState ) { } @ Override public void onConfigurationChanged ( Configuration newConfig ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } private void showGlobalContextActionBar ( ) { ActionBar actionBar = getActionBar ( ) ; actionBar . setDisplayShowTitleEnabled ( true ) ; actionBar . setNavigationMode ( NAVIGATION_MODE_STANDARD ) ; <START_BUG> actionBar . setTitle ( app_name ) ; <END_BUG> } private ActionBar getActionBar ( ) { } public static interface NavigationDrawerCallbacks { void onNavigationDrawerItemSelected ( int position ) { } } }

Fix:
actionBar . setTitle ( servicenaam ) ;
Buggy code:
public class Ant { private Node currNode ; private Node prevNode ; private ArrayList < Node > travelled ; private ArrayList < Integer > directions ; private Map map ; public Ant ( Node node ) { } public void move ( ) { } private Node getNextNode ( ) { <START_BUG> List < Node > nodes = map . getNeighbours ( currNode ) ; <END_BUG> if ( ( prevNode ) != null ) { nodes . remove ( prevNode ) ; } double total = 0 ; for ( Node node : nodes ) { total += node . getPheromone ( ) ; } Node next = null ; double random = Math . random ( ) ; for ( Node node : nodes ) { double pher = node . getPheromone ( ) ; if ( ( pher // total ) > random ) { next = node ; nextDir ( next ) ; break ; } else { random -= pher // total ; } } return next ; } private void nextDir ( Node next ) { } public Node getCurrNode ( ) { } public ArrayList < Node > getTravelled ( ) { } public ArrayList < Integer > getDirections ( ) { } public String pathToString ( ) { } public String parseDirections ( ) { } }

Fix:
List < Node > nodes = new ArrayList ( map . getNeighbours ( currNode ) ) ;
Buggy code:
public class LearnSpamCommand extends FolderCommand { public LearnSpamCommand ( DefaultCommandReference [ ] references ) { } public LearnSpamCommand ( AbstractFrameController frame , DefaultCommandReference [ ] references ) { } public void execute ( Worker worker ) throws Exception { FolderCommandReference [ ] r = ( ( FolderCommandReference [ ] ) ( getReferences ( ) ) ) ; FolderCommandAdapter adapter = new FolderCommandAdapter ( r ) ; Folder srcFolder = ( ( Folder ) ( adapter . getSourceFolderReferences ( ) [ 0 ] . getFolder ( ) ) ) ; worker . setDisplayText ( ( ( "Learning<seq2seq4repair_space>spam<seq2seq4repair_space>from<seq2seq4repair_space>" + ( srcFolder . getName ( ) ) ) + "..." ) ) ; IPCHelper ipcHelper = new IPCHelper ( ) ; String path = srcFolder . getDirectoryFile ( ) . getAbsolutePath ( ) ; log . debug ( "creating<seq2seq4repair_space>process.." ) ; <START_BUG> ipcHelper . executeCommand ( ( "sa-learn<seq2seq4repair_space>--spam<seq2seq4repair_space>--dir" + path ) ) ; <END_BUG> int exitCode = ipcHelper . waitFor ( ) ; log . debug ( ( "exitcode=" + exitCode ) ) ; String output = ipcHelper . getOutputString ( ) ; log . debug ( ( "retrieving<seq2seq4repair_space>output:<seq2seq4repair_space>" + output ) ) ; worker . setDisplayText ( ( "SpamAssassin:<seq2seq4repair_space>" + output ) ) ; log . debug ( "wait<seq2seq4repair_space>for<seq2seq4repair_space>threads<seq2seq4repair_space>to<seq2seq4repair_space>join.." ) ; ipcHelper . waitForThreads ( ) ; } }

Fix:
ipcHelper . executeCommand ( ( ( ( ExternalToolsHelper . getSALearn ( ) ) + "<seq2seq4repair_space>--spam<seq2seq4repair_space>--dir" ) + path ) ) ;
Buggy code:
public class ExampleSampler extends AbstractSampler { private static final long serialVersionUID = 240L ; private static final Logger log = LoggingManager . getLoggerForClass ( ) ; public static final String DATA = "ExampleSampler.data" ; private static int classCount = 0 ; public ExampleSampler ( ) { } public SampleResult sample ( Entry e ) { trace ( "sample()" ) ; SampleResult res = new SampleResult ( ) ; boolean isOK = false ; String data = getData ( ) ; String response = null ; res . setSampleLabel ( getTitle ( ) ) ; res . sampleStart ( ) ; try { response = Thread . currentThread ( ) . getName ( ) ; res . setSamplerData ( data ) ; <START_BUG> res . setResponseData ( response . getBytes ( ) ) ; <END_BUG> res . setDataType ( TEXT ) ; res . setResponseCodeOK ( ) ; res . setResponseMessage ( "OK" ) ; isOK = true ; } catch ( Exception ex ) { ExampleSampler . log . debug ( "" , ex ) ; res . setResponseCode ( "500" ) ; res . setResponseMessage ( ex . toString ( ) ) ; } res . sampleEnd ( ) ; res . setSuccessful ( isOK ) ; return res ; } private String getTitle ( ) { } public String getData ( ) { } private void trace ( String s ) { } }

Fix:
res . setResponseData ( response , null ) ;
Buggy code:
class ListingHandle extends DefaultHandle { private final Logger logger = LoggerFactory . getLogger ( getClass ( ) ) ; private final ObjectMapper objectMapper ; private final ListingDeque listings ; private final GenericHandle < Listing > listingHandle ; private final String country ; private final Charset charset ; ListingHandle ( ObjectMapper objectMapper , ListingDeque listings , String country ) { } ListingHandle ( ObjectMapper objectMapper , GenericHandle < Listing > listingHandle , String country ) { } @ Override public void handle ( InputStream stream ) throws IOException { stream . skip ( 2500L ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( 40000 ) ; ByteStreams . copy ( stream , baos ) ; String content = new String ( baos . toByteArray ( ) , charset ) ; int start = content . indexOf ( "\"listinginfo\"" ) ; if ( start == ( - 1 ) ) { <START_BUG> logger . error ( ( "No<seq2seq4repair_space>listings<seq2seq4repair_space>found:<seq2seq4repair_space>" + content ) ) ; <END_BUG> return ; } String contentToRead = "{" . concat ( content . substring ( start ) ) ; JsonNode node = objectMapper . readTree ( contentToRead ) ; JsonNode assets = node . get ( "assets" ) ; for ( JsonNode listing : node . get ( "listinginfo" ) ) { int appId = listing . get ( "asset" ) . get ( "appid" ) . asInt ( ) ; String contextId = listing . get ( "asset" ) . get ( "contextid" ) . asText ( ) ; String id = listing . get ( "asset" ) . get ( "id" ) . asText ( ) ; String urlName = UrlNameHelper . getUrlName ( assets . get ( Integer . toString ( appId ) ) . get ( contextId ) . get ( id ) . get ( "market_hash_name" ) . asText ( ) ) ; try { if ( ( listing . get ( "price" ) . asInt ( ) ) == 0 ) { logger . info ( "Item<seq2seq4repair_space>already<seq2seq4repair_space>sold" ) ; continue ; } Listing listingObj = new Listing ( appId , urlName , listing . get ( "listingid" ) . asText ( ) , listing . get ( "converted_price" ) . asInt ( ) , listing . get ( "converted_fee" ) . asInt ( ) , listing . get ( "converted_steam_fee" ) . asInt ( ) , listing . get ( "converted_publisher_fee" ) . asInt ( ) , listing . get ( "publisher_fee_app" ) . asInt ( ) , listing . get ( "publisher_fee_percent" ) . asDouble ( ) , country ) ; if ( ( listings ) != null ) { listings . offerFirst ( listingObj ) ; } else { listingHandle . handle ( listingObj ) ; } } catch ( NullPointerException e ) { logger . error ( ( ( ( "Error<seq2seq4repair_space>fetching<seq2seq4repair_space>" + listing ) + ",<seq2seq4repair_space>" ) + ( e . getMessage ( ) ) ) ) ; } } } @ Override public void handleError ( InputStream stream ) throws IOException { } }

Fix:
logger . error ( ( "No<seq2seq4repair_space>listings<seq2seq4repair_space>found:<seq2seq4repair_space>" + content ) , new Exception ( ) ) ;
Buggy code:
@ SuppressWarnings ( "WeakerAccess" ) public class ActivatorManager extends IzouModule implements AddonThreadPoolUser { IdentifiableSet < ActivatorModel > activatorModels = new IdentifiableSet ( ) ; ConcurrentHashMap < ActivatorModel , CompletableFuture > futures = new ConcurrentHashMap < > ( ) ; ConcurrentHashMap < ActivatorModel , AtomicInteger > crashCounter = new ConcurrentHashMap < > ( ) ; public ActivatorManager ( Main main ) { } public void addActivator ( ActivatorModel activatorModel ) throws IllegalIDException { } public void removeActivator ( ActivatorModel activatorModel ) { } private void submitActivator ( ActivatorModel activatorModel ) { CompletableFuture < Void > future = submit ( ( ) -> { try { return activatorModel . call ( ) ; } catch ( e ) { error ( ( ( "Activator:<seq2seq4repair_space>" + ( activatorModel . getID ( ) ) ) + "<seq2seq4repair_space>crashed" ) , e ) ; return true ; } } ) . thenAccept ( ( restart ) -> { if ( ( restart != null ) && ( ! restart ) ) { debug ( ( ( "Activator:<seq2seq4repair_space>" + ( activatorModel . getID ( ) ) ) + "<seq2seq4repair_space>returned<seq2seq4repair_space>false,<seq2seq4repair_space>will<seq2seq4repair_space>not<seq2seq4repair_space>restart" ) ) ; } else { error ( ( ( "Activator:<seq2seq4repair_space>" + ( activatorModel . getID ( ) ) ) + "<seq2seq4repair_space>returned<seq2seq4repair_space>not<seq2seq4repair_space>true" ) ) ; if ( ( crashCounter . get ( activatorModel ) . get ( ) ) < 100 ) { error ( ( ( ( ( "Until<seq2seq4repair_space>now<seq2seq4repair_space>activator:<seq2seq4repair_space>" + ( activatorModel . getID ( ) ) ) + "<seq2seq4repair_space>was<seq2seq4repair_space>restarted:<seq2seq4repair_space>" ) + ( crashCounter . get ( activatorModel ) . get ( ) ) ) + "<seq2seq4repair_space>times,<seq2seq4repair_space>attempting<seq2seq4repair_space>restart." ) ) ; crashCounter . get ( activatorModel ) . incrementAndGet ( ) ; submitActivator ( activatorModel ) ; } else { error ( ( ( ( ( "Activator:<seq2seq4repair_space>" + ( activatorModel . getID ( ) ) ) + "<seq2seq4repair_space>reached<seq2seq4repair_space>restarting<seq2seq4repair_space>limit<seq2seq4repair_space>with<seq2seq4repair_space>" ) + ( crashCounter . get ( activatorModel ) . get ( ) ) ) + "<seq2seq4repair_space>restarts." ) ) ; } } } ) ; CompletableFuture existing = futures . put ( activatorModel , future ) ; <START_BUG> if ( ! ( existing . isDone ( ) ) ) <END_BUG> existing . cancel ( true ) ; } }

Fix:
if ( ( existing != null ) && ( ! ( existing . isDone ( ) ) ) )
Buggy code:
public class StringBuilderWriterTest extends TestCase { private static final char [ ] FOOBAR_CHARS = new char [ ] { 'F' , 'o' , 'o' , 'B' , 'a' , 'r' } ; public StringBuilderWriterTest ( String name ) { } public void testAppendConstructCapacity ( ) throws IOException { } public void testAppendConstructStringBuilder ( ) { StringBuilder builder = new StringBuilder ( "Foo" ) ; StringBuilderWriter writer = new StringBuilderWriter ( builder ) ; writer . append ( "Bar" ) ; assertEquals ( "FooBar" , writer . toString ( ) ) ; <START_BUG> assertTrue ( ( builder == ( writer . getBuilder ( ) ) ) ) ; <END_BUG> } public void testAppendConstructNull ( ) throws IOException { } public void testAppendChar ( ) throws IOException { } public void testAppendCharSequence ( ) throws IOException { } public void testAppendCharSequencePortion ( ) throws IOException { } public void testClose ( ) { } public void testWriteChar ( ) throws IOException { } public void testWriteCharArray ( ) throws IOException { } public void testWriteCharArrayPortion ( ) throws IOException { } public void testWriteString ( ) throws IOException { } public void testWriteStringPortion ( ) throws IOException { } }

Fix:
assertEquals ( builder , writer . getBuilder ( ) ) ;
Buggy code:
public class Application extends Controller { private static final RestGraphDatabase gdb = new RestGraphDatabase ( Application . neo4jUrl ( ) , System . getenv ( "NEO4J_LOGIN" ) , System . getenv ( "NEO4J_PASSWORD" ) ) ; private static final RepositoryService service = new RepositoryService ( Application . gdb , new org . neo4j . rest . graphdb . query . RestCypherQueryEngine ( Application . gdb . getRestAPI ( ) ) ) ; private static final String COMMA_SPLIT = "\\s*,\\s*" ; private static String neo4jUrl ( ) { } public static void reindex ( ) { } private static void index ( ) { } public static void show ( Integer id ) { } public static void install ( Integer id ) { } public static void update ( Integer id ) { } public static void index ( String tags , String q ) { } static Map < String , Category > parseTagsString ( String tags ) { } public static void like ( Integer id , int stars , String comment ) { if ( Application . loggedIn ( ) ) { Application . service . like ( id , Application . email ( ) , stars , comment ) ; } <START_BUG> Application . show ( id ) ; <END_BUG> } public static void add ( ) { } private static Collection < AppInfo > sharedApps ( ) { } public static void addApp ( String name , String repository , String giturl , String herokuapp , String stack , String type , String language , String framework , String build , String addon , String email , String description , String docurl , String videourl ) { } public static void updateApp ( Integer id , String name , String repository , String giturl , String herokuapp , String stack , String type , String language , String framework , String build , String addon , String description , String docurl , String videourl ) { } public static void addAddons ( ) { } private static String addonName ( Addon addon ) { } private static String toJson ( Object value ) { } public static void login ( String email , String password ) { } public static void logout ( ) { } private static String email ( ) { } private static String token ( ) { } private static HerokuApi herokuApi ( ) { } private static boolean loggedIn ( ) { } private static List < AppInfo > listApps ( Collection < AppInfo > sharedApps ) { } private static boolean isShared ( Collection < AppInfo > sharedApps , App app ) { } private static String toStack ( App herokuApp ) { } }

Fix:
Application . index ( ) ;
Buggy code:
public class StreamError { private String code ; public StreamError ( String code ) { } public String getCode ( ) { } public String toString ( ) { <START_BUG> StringBuffer txt = new StringBuffer ( ) ; <END_BUG> txt . append ( "stream:error<seq2seq4repair_space>(" ) . append ( code ) . append ( ")" ) ; return txt . toString ( ) ; } }

Fix:
StringBuilder txt = new StringBuilder ( ) ;
Buggy code:
public class Activator implements BundleActivator { private static final Log _log = LogFactory . getLog ( Activator . class ) ; private static Activator _instance = null ; public static Activator getInstance ( ) { } private final List < LanguageSpecificMiddleEndFactory > _middleEndContributions = new ArrayList < LanguageSpecificMiddleEndFactory > ( ) ; private boolean _isInitialized = false ; public List < LanguageSpecificMiddleEnd > getFreshMiddleEnds ( Map < Class < ? > , Object > specificParams ) { } public void start ( BundleContext context ) throws Exception { } private void init ( ) { if ( _isInitialized ) return ; _isInitialized = true ; _middleEndContributions . clear ( ) ; try { <START_BUG> final IConfigurationElement [ ] confEl = RegistryFactory . getRegistry ( ) . getConfigurationElementsFor ( "org.eclipse.xtend.middleend.MiddleEnd" ) ; <END_BUG> for ( IConfigurationElement curEl : confEl ) { final Object o = curEl . createExecutableExtension ( "class" ) ; _middleEndContributions . add ( ( ( LanguageSpecificMiddleEndFactory ) ( o ) ) ) ; } } catch ( Exception exc ) { exc . printStackTrace ( ) ; } Collections . sort ( _middleEndContributions , new Comparator < LanguageSpecificMiddleEndFactory > ( ) { public int compare ( LanguageSpecificMiddleEndFactory o1 , LanguageSpecificMiddleEndFactory o2 ) { return ( o1 . getPriority ( ) ) - ( o2 . getPriority ( ) ) ; } } ) ; Activator . _log . info ( "Activating<seq2seq4repair_space>Eclipse<seq2seq4repair_space>Modeling<seq2seq4repair_space>Middle<seq2seq4repair_space>End<seq2seq4repair_space>-<seq2seq4repair_space>the<seq2seq4repair_space>following<seq2seq4repair_space>middle<seq2seq4repair_space>ends<seq2seq4repair_space>are<seq2seq4repair_space>registered:" ) ; for ( LanguageSpecificMiddleEndFactory factory : _middleEndContributions ) Activator . _log . info ( ( "<seq2seq4repair_space>" + ( factory . getName ( ) ) ) ) ; } public void stop ( BundleContext context ) throws Exception { } }

Fix:
final IConfigurationElement [ ] confEl = RegistryFactory . getRegistry ( ) . getConfigurationElementsFor ( "org.eclipse.xtend.backend.MiddleEnd" ) ;
Buggy code:
public class AbstractSharedObject implements IIdentifiable , ISharedObject { private static final Trace trace = Trace . create ( "abstractsharedobject" ) ; private ISharedObjectConfig config = null ; private List eventProcessors = new Vector ( ) ; public AbstractSharedObject ( ) { } public final void init ( ISharedObjectConfig initData ) throws SharedObjectInitException { } protected void initialize ( ) throws SharedObjectInitException { } protected void creationCompleted ( ) { } public void dispose ( ID containerID ) { } public Object getAdapter ( Class adapter ) { } public void handleEvent ( Event event ) { } protected boolean addEventProcessor ( IEventProcessor proc ) { } protected boolean removeEventProcessor ( IEventProcessor proc ) { } protected void clearEventProcessors ( ) { } protected void handleUnhandledEvent ( Event event ) { } protected void fireEventProcessors ( Event event ) { } public void handleEvents ( Event [ ] events ) { } public ID getID ( ) { } protected ISharedObjectConfig getConfig ( ) { } protected ISharedObjectContext getContext ( ) { } protected ID getHomeContainerID ( ) { } protected ID getLocalContainerID ( ) { } protected ID getGroupID ( ) { } protected boolean isConnected ( ) { } protected boolean isPrimary ( ) { } protected Map getProperties ( ) { } protected void destroySelf ( ) { } protected void destroySelfLocal ( ) { } protected void destroyRemote ( ID remoteID ) throws IOException { } private void trace ( String msg ) { } private void traceStack ( String msg , Throwable t ) { } protected void sendSharedObjectMsgTo ( ID toID , SharedObjectMsg msg ) throws IOException { } protected void sendSharedObjectMsgToPrimary ( SharedObjectMsg msg ) throws IOException { } protected void sendSharedObjectMsgToSelf ( SharedObjectMsg msg ) { } protected SharedObjectMsg getSharedObjectMsgFromEvent ( ISharedObjectMessageEvent event ) { } protected boolean handleSharedObjectMsgEvent ( ISharedObjectMessageEvent event ) { } protected boolean handleSharedObjectCreateResponseEvent ( ISharedObjectCreateResponseEvent createResponseEvent ) { trace ( ( ( "handleSharedObjectCreateResponseEvent(" + createResponseEvent ) + ")" ) ) ; <START_BUG> return true ; <END_BUG> } protected boolean handleSharedObjectMsg ( SharedObjectMsg msg ) { } protected ReplicaSharedObjectDescription getReplicaDescription ( ID receiver ) { } protected ReplicaSharedObjectDescription [ ] getReplicaDescriptions ( ID [ ] receivers ) { } protected void replicateToRemoteContainers ( ID [ ] remoteContainers ) { } }

Fix:
return false ;