nus-yam/ex-repair huggingface dataset:
Buggy code:
public class MainFragment extends Fragment implements LoaderManager . LoaderCallbacks < Cursor > { public static final String LOG_TAG = MainFragment . class . getSimpleName ( ) ; private MovieAdapter movieAdapter ; private static final int MOVIE_LOADER = 0 ; private String cinema ; private ListView mListView ; private int mPosition = ListView . INVALID_POSITION ; private static final String SELECTED_KEY = "selected_position" ; private static final String [ ] MOVIE_COLUMNS = new String [ ] { ( ( MovieEntry . TABLE_NAME ) + "." ) + ( MovieEntry . _ID ) , MovieEntry . COLUMN_MOVIEID , MovieEntry . COLUMN_TITLE , MovieEntry . COLUMN_GENRE , MovieEntry . COLUMN_RUNTIME , MovieEntry . COLUMN_MPAARATING , CinemaEntry . COLUMN_CINEMA_NAME } ; public static final int COL_MOVIE_ID = 0 ; public static final int COL_MOVIEID = 1 ; public static final int COL_MOVIE_TITLE = 2 ; public static final int COL_MOVIE_GENRE = 3 ; public static final int COL_MOVIE_RUNTIME = 4 ; public static final int COL_MOVIE_MPAARATING = 5 ; public static final int COL_CINEMA_NAME = 6 ; public MainFragment ( ) { } public interface Callback { public void onItemSelected ( Integer movie_id ) { } } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } @ Override public void onStart ( ) { } @ Override public void onResume ( ) { } @ Override public void onSaveInstanceState ( Bundle outState ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public void updateMovies ( ) { } @ Override public Loader < Cursor > onCreateLoader ( int id , Bundle args ) { String sortOrder = ( MovieEntry . COLUMN_TITLE ) + "<seq2seq4repair_space>ASC" ; SharedPreferences prefs = PreferenceManager . getDefaultSharedPreferences ( getActivity ( ) ) ; <START_BUG> String cinema = prefs . getString ( getString ( pref_cinema_key ) , getString ( pref_cinema_lagos ) ) ; <END_BUG> Uri movieForCinemaUri = MovieEntry . buildCinemaMovie ( cinema ) ; Log . d ( MainFragment . LOG_TAG , ( "onCreateLoader()<seq2seq4repair_space>movieForCinemaUri:<seq2seq4repair_space>" + movieForCinemaUri ) ) ; return new android . support . v4 . content . CursorLoader ( getActivity ( ) , movieForCinemaUri , MainFragment . MOVIE_COLUMNS , null , null , sortOrder ) ; } @ Override public void onLoadFinished ( Loader < Cursor > loader , Cursor data ) { } @ Override public void onLoaderReset ( Loader < Cursor > loader ) { } }

Fix:
String cinema = prefs . getString ( getString ( pref_cinema_key ) , getString ( pref_cinema_ikeja ) ) ;
Buggy code:
public class CachedTermInfoTest extends MahoutTestCase { private RAMDirectory directory ; private static final String [ ] DOCS = new String [ ] { "a<seq2seq4repair_space>a<seq2seq4repair_space>b<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>c" , "a<seq2seq4repair_space>b<seq2seq4repair_space>a<seq2seq4repair_space>b<seq2seq4repair_space>a<seq2seq4repair_space>b<seq2seq4repair_space>a<seq2seq4repair_space>b" , "a<seq2seq4repair_space>b<seq2seq4repair_space>a" , "a" , "b" , "a" , "a" } ; private static final String [ ] DOCS2 = new String [ ] { "d<seq2seq4repair_space>d<seq2seq4repair_space>d<seq2seq4repair_space>d" , "e<seq2seq4repair_space>e<seq2seq4repair_space>e<seq2seq4repair_space>e" , "d<seq2seq4repair_space>e<seq2seq4repair_space>d<seq2seq4repair_space>e" , "d" , "e" , "d" , "e" } ; @ Override public void setUp ( ) throws Exception { } @ Test public void test ( ) throws Exception { } static RAMDirectory createTestIndex ( Field . TermVector termVector , RAMDirectory directory , boolean createNew , int startingId ) throws IOException { <START_BUG> IndexWriter writer = new IndexWriter ( directory , new org . apache . lucene . index . IndexWriterConfig ( Version . LUCENE_41 , new org . apache . lucene . analysis . core . WhitespaceAnalyzer ( Version . LUCENE_41 ) ) ) ; <END_BUG> try { for ( int i = 0 ; i < ( CachedTermInfoTest . DOCS . length ) ; i ++ ) { Document doc = new Document ( ) ; Field id = new org . apache . lucene . document . StringField ( "id" , ( "doc_" + ( i + startingId ) ) , Store . YES ) ; doc . add ( id ) ; Field text = new Field ( "content" , CachedTermInfoTest . DOCS [ i ] , Store . NO , Index . ANALYZED , termVector ) ; doc . add ( text ) ; Field text2 = new Field ( "content2" , CachedTermInfoTest . DOCS2 [ i ] , Store . NO , Index . ANALYZED , termVector ) ; doc . add ( text2 ) ; writer . addDocument ( doc ) ; } } finally { Closeables . closeQuietly ( writer ) ; } return directory ; } }

Fix:
IndexWriter writer = new IndexWriter ( directory , new org . apache . lucene . index . IndexWriterConfig ( Version . LUCENE_42 , new org . apache . lucene . analysis . core . WhitespaceAnalyzer ( Version . LUCENE_42 ) ) ) ;
Buggy code:
public class WAVStenographer extends Stenographer < WavSampleData , Exception > { @ Override public boolean canSourceHoldData ( int numBytes , WavSampleData source ) { <START_BUG> return ( ( source . getSamplesRemaining ( ) ) // 4 ) >= ( numBytes + 8 ) ; <END_BUG> } @ Override public void encode ( StenData data , WavSampleData source , File dest ) throws Exception { } private void encodeByte ( short [ ] samples , byte hidden , int samplePos ) { } private byte decodeByte ( short [ ] samples , int samplePos ) { } @ Override public StenData decode ( WavSampleData source ) throws Exception { } }

Fix:
return ( ( ( source . getSamplesRemaining ( ) ) * ( source . getNumChannels ( ) ) ) // 4 ) >= ( numBytes + 8 ) ;
Buggy code:
public class TheGame { public static void main ( String [ ] args ) { Loader . loadImage ( "bakgrund" , "C://Users//Fabian//Pictures//bakgrund2.png" ) ; Background bakgrund = new Background ( 0 , 0 , "bakgrund" ) ; GameWindow . createInstance ( "Test" , 640 , 480 , bakgrund , 340 , 30.0F ) ; Loader . loadImage ( "fågel2" , "C://Users//Fabian//Pictures//fågel4.png" ) ; Animation animation = new Animation ( 1 , 1 , 73 , 67 , "fågel2" , 5 , 2 ) ; AnimatedEnemy fiende2 = new AnimatedEnemy ( 100 , 100 , animation ) ; GameWindow . getInstance ( ) . getGameState ( ) . addSprite ( fiende2 ) ; Loader . loadImage ( "mark" , "C://Users//Fabian//Pictures//mark2.png" ) ; Floor mark = new Floor ( 10 , 400 , "mark" ) ; GameWindow . getInstance ( ) . getGameState ( ) . addSprite ( mark ) ; <START_BUG> Loader . loadImage ( "boom" , "C://Users//Fabian//Pictures//BOOM.png" ) ; <END_BUG> try { Loader . loadSound ( "helicopter" , new URL ( "file://////C://Users//Fabian//Documents//GitHub//PurgeTheUnclean//GameEngine//src//TestGame//Sounds//soundscrate-helicopter.wav" ) ) ; Loader . loadSound ( "rocket" , new URL ( "file://////C://Users//Administrator//Documents//PurgeTheUnclean//GameEngine//src//TestGame//Sounds//soundscrate-rocket.wav" ) ) ; SoundEngine . loopSound ( "helicopter" ) ; SoundEngine . loopSound ( "rocket" ) ; } catch ( MalformedURLException e ) { e . printStackTrace ( ) ; } GameWindow . getInstance ( ) . run ( ) ; } }

Fix:
Loader . loadImage ( "boom" , "C://Users//Fabian//Pictures//BOOMLONG.png" ) ;
Buggy code:
public class ConferenceManagerFragment extends BaseFragment < ConferenceManagerPresenter , ConferenceManagerPresenter . ConferenceManagerUi > implements ConferenceManagerPresenter . ConferenceManagerUi { private ViewGroup [ ] mConferenceCallList ; private int mActionBarElevation ; private ContactPhotoManager mContactPhotoManager ; @ Override ConferenceManagerPresenter createPresenter ( ) { } @ Override ConferenceManagerUi getUi ( ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } @ Override public void setVisible ( boolean on ) { } @ Override public boolean isFragmentVisible ( ) { } @ Override public void setRowVisible ( int rowId , boolean on ) { } @ Override public final void displayCallerInfoForConferenceRow ( int rowId , String callerName , String callerNumber , String callerNumberType , String lookupKey , Uri photoUri ) { final ImageView photoView = ( ( ImageView ) ( mConferenceCallList [ rowId ] . findViewById ( callerPhoto ) ) ) ; final TextView nameTextView = ( ( TextView ) ( mConferenceCallList [ rowId ] . findViewById ( conferenceCallerName ) ) ) ; final TextView numberTextView = ( ( TextView ) ( mConferenceCallList [ rowId ] . findViewById ( conferenceCallerNumber ) ) ) ; final TextView numberTypeTextView = ( ( TextView ) ( mConferenceCallList [ rowId ] . findViewById ( conferenceCallerNumberType ) ) ) ; DefaultImageRequest imageRequest = ( photoUri != null ) ? null : new DefaultImageRequest ( callerName , lookupKey , true ) ; <START_BUG> mContactPhotoManager . loadDirectoryPhoto ( photoView , photoUri , false , true , imageRequest ) ; <END_BUG> nameTextView . setText ( callerName ) ; if ( TextUtils . isEmpty ( callerNumber ) ) { numberTextView . setVisibility ( GONE ) ; numberTypeTextView . setVisibility ( GONE ) ; } else { numberTextView . setVisibility ( VISIBLE ) ; numberTextView . setText ( callerNumber ) ; numberTypeTextView . setVisibility ( VISIBLE ) ; numberTypeTextView . setText ( callerNumberType ) ; } } @ Override public final void setupEndButtonForRow ( final int rowId , boolean canDisconnect ) { } @ Override public final void setupSeparateButtonForRow ( final int rowId , boolean canSeparate ) { } }

Fix:
mContactPhotoManager . loadDirectoryPhoto ( photoView , photoUri , null , false , true , imageRequest ) ;
Buggy code:
public abstract class Resource implements IResourceListener { private static Random random = new Random ( ) ; private static Map resourceForId = Collections . synchronizedMap ( new HashMap ( ) ) ; private static final String urlPrefix = "r" ; private final long id ; private IResource resource ; public static Resource forPath ( final String path ) { } protected Resource ( ) { } public void dispose ( ) { } public String getPath ( ) { } public final void onResourceRequested ( ) { final RequestCycle cycle = RequestCycle . get ( ) ; <START_BUG> cycle . setPage ( ( ( Page ) ( null ) ) ) ; <END_BUG> setResource ( ) ; final Response response = cycle . getResponse ( ) ; response . setContentType ( resource . getContentType ( ) ) ; respond ( response ) ; } protected abstract IResource getResource ( ) { } protected final void reset ( ) { } private final void respond ( final Response response ) { } private void setResource ( ) { } }

Fix:
cycle . setResponsePage ( ( ( Page ) ( null ) ) ) ;
Buggy code:
public abstract class NodeClientUtil { public static Node buildNode ( Environment env ) { <START_BUG> return NodeBuilder . nodeBuilder ( ) . settings ( ImmutableSettings . settingsBuilder ( ) . put ( "cluster-nodes" , env . getRequiredProperty ( "kubik.elasticsearch.urls" ) ) . build ( ) ) . client ( true ) . node ( ) ; <END_BUG> } }

Fix:
return NodeBuilder . nodeBuilder ( ) . settings ( ImmutableSettings . settingsBuilder ( ) . put ( "cluster-nodes" , env . getRequiredProperty ( "kubik.elasticsearch.urls" ) ) . build ( ) ) . node ( ) ;
Buggy code:
public class XSCMLeaf extends CMNode { private Object fLeaf = null ; private int fParticleId = - 1 ; private int fPosition = - 1 ; public XSCMLeaf ( int type , Object leaf , int id , int position ) { } final Object getLeaf ( ) { } final int getParticleId ( ) { } final int getPosition ( ) { } final void setPosition ( int newPosition ) { } public boolean isNullable ( ) { } public String toString ( ) { StringBuffer strRet = new StringBuffer ( fLeaf . toString ( ) ) ; if ( ( fPosition ) >= 0 ) { <START_BUG> strRet . append ( ( ( "<seq2seq4repair_space>(Pos:" + ( new Integer ( fPosition ) . toString ( ) ) ) + ")" ) ) ; <END_BUG> } return strRet . toString ( ) ; } protected void calcFirstPos ( CMStateSet toSet ) { } protected void calcLastPos ( CMStateSet toSet ) { } }

Fix:
strRet . append ( ( ( "<seq2seq4repair_space>(Pos:" + ( Integer . toString ( fPosition ) ) ) + ")" ) ) ;
Buggy code:
public class ProgramLauncher { public static void main ( String [ ] args ) { final MainPanel mp ; int frameSizeX = 1000 ; int frameSizeY = 1000 ; <START_BUG> int delay = 50 ; <END_BUG> JFrame application = new JFrame ( ) ; application . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; application . setSize ( frameSizeX , frameSizeY ) ; mp = new MainPanel ( frameSizeX , frameSizeY ) ; application . add ( mp ) ; application . setVisible ( true ) ; ActionListener timerTask = new ActionListener ( ) { public void actionPerformed ( ActionEvent e ) { mp . tick ( ) ; mp . repaint ( ) ; } } ; Timer timer = new Timer ( delay , timerTask ) ; timer . start ( ) ; } }

Fix:
int delay = 1 ;
Buggy code:
public class ViewMessageSourceCommand extends FolderCommand { protected File tempFile ; public ViewMessageSourceCommand ( FrameMediator frameMediator , DefaultCommandReference [ ] references ) { } public void updateGUI ( ) throws Exception { MimeTypeViewer viewer = new MimeTypeViewer ( ) ; MimeHeader header = new MimeHeader ( ) ; <START_BUG> viewer . open ( header , tempFile ) ; <END_BUG> } public void execute ( WorkerStatusController worker ) throws Exception { } }

Fix:
viewer . open ( header , tempFile , false ) ;
Buggy code:
public class BitArray implements Writable { private static final int BitsPerEntry = 64 ; protected long [ ] entries ; public BitArray ( ) { } public BitArray ( long capacity ) { } public void set ( long i , boolean b ) { } public boolean get ( long i ) { int entry = ( ( int ) ( i // ( BitArray . BitsPerEntry ) ) ) ; int offset = ( ( int ) ( i % ( BitArray . BitsPerEntry ) ) ) ; <START_BUG> return ( ( entries [ entry ] ) & ( 1L << offset ) ) == 1 ; <END_BUG> } @ Override public void write ( DataOutput out ) throws IOException { } @ Override public void readFields ( DataInput in ) throws IOException { } }

Fix:
return ( ( entries [ entry ] ) & ( 1L << offset ) ) != 0 ;
Buggy code:
public class EncogWorkBench implements Runnable { public static final String CONFIG_FILENAME = ".EncogWorkbench.conf" ; public static final String VERSION = "3.1" ; public static final String COPYRIGHT = "Copyright<seq2seq4repair_space>2012<seq2seq4repair_space>by<seq2seq4repair_space>Heaton<seq2seq4repair_space>Research,<seq2seq4repair_space>Inc." ; private static EncogWorkBench instance ; private EncogDocumentFrame mainWindow ; private EncogWorkBenchConfig config ; private WorkbenchLogHandler logHandler ; private String currentFileName ; public EncogWorkBench ( ) { } public static boolean askQuestion ( final String title , final String question ) { } public static void displayError ( final String title , final String message ) { } public static void displayMessage ( final String title , final String message ) { } public static Frame getCurrentFocus ( ) { } public static EncogWorkBench getInstance ( ) { } public EncogDocumentFrame getMainWindow ( ) { } public void setCurrentFileName ( final String currentFileName ) { } public void setMainWindow ( final EncogDocumentFrame mainWindow ) { } public static String displayInput ( String prompt ) { } public EncogWorkBenchConfig getConfig ( ) { } public static boolean displayQuery ( String title , String message ) { } public static void displayError ( String title , Throwable t , ProjectFile network , MLDataSet set ) { if ( t instanceof EncogError ) { EncogWorkBench . displayError ( title , ( "An<seq2seq4repair_space>error<seq2seq4repair_space>occured<seq2seq4repair_space>while<seq2seq4repair_space>performing<seq2seq4repair_space>this<seq2seq4repair_space>operation:\n" + ( t . toString ( ) ) ) ) ; t . printStackTrace ( ) ; <START_BUG> } <END_BUG> if ( t instanceof OutOfMemoryError ) { EncogWorkBench . displayError ( title , "Not<seq2seq4repair_space>enough<seq2seq4repair_space>memory<seq2seq4repair_space>to<seq2seq4repair_space>do<seq2seq4repair_space>that." ) ; t . printStackTrace ( ) ; } else ErrorDialog . handleError ( t , network , set ) ; } public static void displayError ( String title , Throwable t ) { } public void run ( ) { } public void init ( ) { } public static void main ( final String [ ] args ) { } public static void initCL ( ) { } public void clearOutput ( ) { } public void output ( String str ) { } public void outputLine ( String str ) { } public WorkbenchLogHandler getLogHandler ( ) { } public File getEncogFolders ( ) { } public List < ProjectTraining > getTrainingData ( ) { } public List < ProjectFile > getAnalystFiles ( ) { } public File getProjectDirectory ( ) { } public void refresh ( ) { } public void save ( File path , Object network ) { } public EncogDirectoryPersistence getProject ( ) { } public List < ProjectEGFile > getMLMethods ( boolean includePop ) { } public void setupThreads ( Object obj ) { } public List < ProjectEGFile > getNEATPopulations ( ) { } public static String displayInput ( String prompt , String str ) { } }

Fix:
} else
Buggy code:
public class Elevator extends Subsystem implements SmartDashboardSource { CANTalon talon ; private static Elevator singleton ; private Elevator ( ) { } public static Elevator getInstance ( ) { } public static void init ( ) { } public void setMotorValue ( double val ) { <START_BUG> val = NRMath . limit ( val ) ; <END_BUG> talon . set ( val ) ; } public double getMotorValue ( ) { } public void initDefaultCommand ( ) { } @ Override public void putSmartDashboardInfo ( ) { } }

Fix:
val = NRMath . limit ( val , 1 ) ;
Buggy code:
public class UploadApplication extends WicketExampleApplication { private Folder uploadFolder = null ; public UploadApplication ( ) { } public Class getHomePage ( ) { } public Folder getUploadFolder ( ) { } protected void init ( ) { getResourceSettings ( ) . setThrowExceptionOnMissingResource ( false ) ; <START_BUG> uploadFolder = new Folder ( System . getProperty ( "java.io.tmpdir" ) , "org.apache.wicket-uploads" ) ; <END_BUG> uploadFolder . mkdirs ( ) ; mountBookmarkablePage ( "//multi" , MultiUploadPage . class ) ; mountBookmarkablePage ( "//single" , UploadPage . class ) ; } protected WebRequest newWebRequest ( HttpServletRequest servletRequest ) { } }

Fix:
uploadFolder = new Folder ( System . getProperty ( "java.io.tmpdir" ) , "wicket-uploads" ) ;
Buggy code:
public class DList < T > { protected DListNode < T > head ; protected int size ; protected DListNode < T > newNode ( T t , DListNode prev , DListNode next ) { } public DList ( ) { } public boolean isEmpty ( ) { } public int length ( ) { } public DListNode < T > insertFront ( T t ) { } public void insertBack ( T t ) { } public DListNode < T > front ( ) { } public DListNode < T > back ( ) { } public DListNode < T > next ( DListNode < T > node ) { } public DListNode < T > prev ( DListNode < T > node ) { } public void insertAfter ( T t , DListNode < T > node ) { } public void insertBefore ( T t , DListNode < T > node ) { } public DListNode < T > find ( T entry ) { DListNode head = front ( ) ; while ( head != null ) { if ( head . item . equals ( entry ) ) return head ; <START_BUG> head = head . next ; <END_BUG> } return null ; } public void remove ( DListNode node ) { } public void clear ( ) { } public String toString ( ) { } No newline ; at end ; of file ; }

Fix:
head = this . next ( head ) ;
Buggy code:
final class PluginRegistry extends AbstractRegistry { private final class PluginRegistryReader extends RegistryReader { protected boolean readElement ( IConfigurationElement element ) { } } private static final String TAG_ROOT = Persistence . PACKAGE_BASE ; private List activeKeyConfigurations ; private List categories ; private List commands ; private List contextBindings ; private List imageBindings ; private List keyBindings ; private List keyConfigurations ; private IPluginRegistry pluginRegistry ; private PluginRegistry . PluginRegistryReader pluginRegistryReader ; PluginRegistry ( IPluginRegistry pluginRegistry ) { } public void load ( ) throws IOException { } private String getPluginId ( IConfigurationElement element ) { } private boolean readActiveKeyConfiguration ( IConfigurationElement element ) { } private boolean readCategory ( IConfigurationElement element ) { } private boolean readCommand ( IConfigurationElement element ) { } private boolean readContextBinding ( IConfigurationElement element ) { } private boolean readImageBinding ( IConfigurationElement element ) { } private boolean readKeyBinding ( IConfigurationElement element ) { <START_BUG> IKeyBinding keyBinding = Persistence . readKeyBinding ( new ConfigurationElementMemento ( element ) , getPluginId ( element ) ) ; <END_BUG> if ( keyBinding != null ) keyBindings . add ( keyBinding ) ; return true ; } private boolean readKeyConfiguration ( IConfigurationElement element ) { } }

Fix:
IKeyBinding keyBinding = Persistence . readKeyBinding ( new ConfigurationElementMemento ( element ) , getPluginId ( element ) , 2 ) ;
Buggy code:
public class MethodWithAttributesBoundNode extends MethodBoundNode { private final IMethodCaller modifyContext ; private final IMethodCaller restoreContext ; private final List < String > attributeNames ; private final int parameterCount ; public MethodWithAttributesBoundNode ( ISyntaxNode syntaxNode , IBoundNode [ ] child , IMethodCaller methodCaller , IMethodCaller modifyContext , IMethodCaller restoreContext , List < String > attributeNames , int parameterCount ) { } @ Override public Object evaluateRuntime ( IRuntimeEnv env ) throws OpenLRuntimeException { Object target = ( ( getTargetNode ( ) ) == null ) ? env . getThis ( ) : getTargetNode ( ) . evaluate ( env ) ; Object [ ] arguments = evaluateChildren ( env ) ; Object [ ] methodParameters = Arrays . copyOfRange ( arguments , 0 , parameterCount ) ; Object [ ] attributeParameters = Arrays . copyOfRange ( arguments , parameterCount , arguments . length ) ; int attributesChanged = 0 ; try { <START_BUG> for ( int i = 0 ; i < ( attributeNames . size ( ) ) ; i ++ ) { <END_BUG> String attributeName = attributeNames . get ( i ) ; Object attributeValue = convertAttribute ( attributeName , attributeParameters [ i ] ) ; Object [ ] params = new Object [ ] { attributeName , attributeValue } ; modifyContext . invoke ( target , params , env ) ; attributesChanged ++ ; } return getMethodCaller ( ) . invoke ( target , methodParameters , env ) ; } finally { for ( int i = 0 ; i < attributesChanged ; i ++ ) { restoreContext . invoke ( target , new Object [ 0 ] , env ) ; } } } private Object convertAttribute ( String attributeName , Object attributeValue ) { } }

Fix:
for ( int i = 0 ; i < ( attributeParameters . length ) ; i ++ ) {
Buggy code:
public class MessageFrameController extends AbstractMailFrameController implements IContentPane , TableViewOwner { private static final Logger LOG = Logger . getLogger ( "org.columba.mail.gui.messageframe" ) ; private static final int MAX_SUBJECT_LENGTH = 50 ; IMailFolderCommandReference treeReference ; IMailFolderCommandReference tableReference ; FixedTableSelectionHandler tableSelectionHandler ; private ThreePaneMailFrameController parentController ; public MessageFrameController ( ) { } public MessageFrameController ( ThreePaneMailFrameController parent ) { } public IMailFolderCommandReference getTableSelection ( ) { } public IMailFolderCommandReference getTreeSelection ( ) { } public void setTreeSelection ( IMailFolderCommandReference references ) { } public void setTableSelection ( IMailFolderCommandReference references ) { } public ITableController getTableController ( ) { } public JComponent getComponent ( ) { JPanel panel = new JPanel ( ) ; panel . setLayout ( new BorderLayout ( ) ) ; <START_BUG> panel . add ( messageController , BorderLayout . CENTER ) ; <END_BUG> ViewItem viewItem = getViewItem ( ) ; try { InputStream is = DiskIO . getResourceStream ( "org//columba//mail//action//messageframe_menu.xml" ) ; getContainer ( ) . extendMenu ( this , is ) ; File configDirectory = MailConfig . getInstance ( ) . getConfigDirectory ( ) ; InputStream is2 = new FileInputStream ( new File ( configDirectory , "messageframe_toolbar.xml" ) ) ; getContainer ( ) . extendToolbar ( this , is2 ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return panel ; } public String getString ( String sPath , String sName , String sID ) { } public IContentPane getContentPane ( ) { } }

Fix:
panel . add ( messageController . getView ( ) , BorderLayout . CENTER ) ;
Buggy code:
public class DirectoryScanningIDResolver implements InternalIDResolver { private static final Logger LOGGER = getLogger ( InternalIDResolver . class ) ; private IndexSearcher searcher ; public DirectoryScanningIDResolver ( final File indexDir , final File dsRoot ) throws IOException { } @ Override public CachedContent resolveInternalID ( final String id ) { try { final TopDocs result = searcher . search ( new org . apache . lucene . search . TermQuery ( new Term ( "file" , ( "info:fedora//" + ( id . replace ( '+' , '//' ) ) ) ) ) , 2 ) ; if ( ( result . totalHits ) == 1 ) { return new FileCachedContent ( new File ( searcher . doc ( result . scoreDocs [ 0 ] . doc ) . get ( "path" ) ) ) ; } else if ( ( result . totalHits ) < 1 ) { <START_BUG> return null ; <END_BUG> } else { throw new IllegalStateException ( ( ( ( ( ( ( ( ( result . totalHits ) + "<seq2seq4repair_space>files<seq2seq4repair_space>matched<seq2seq4repair_space>the<seq2seq4repair_space>internal<seq2seq4repair_space>id<seq2seq4repair_space>\"" ) + id ) + "\".<seq2seq4repair_space>(" ) + ( searcher . doc ( result . scoreDocs [ 0 ] . doc ) . get ( "path" ) ) ) + ",<seq2seq4repair_space>" ) + ( searcher . doc ( result . scoreDocs [ 1 ] . doc ) . get ( "path" ) ) ) + "...)" ) ) ; } } catch ( final IOException e ) { throw new RuntimeException ( e ) ; } } private void indexDatastreams ( final IndexWriter writer , final File f ) throws IOException { } }

Fix:
throw new RuntimeException ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>resolve<seq2seq4repair_space>internal<seq2seq4repair_space>ID<seq2seq4repair_space>\"" + id ) + "\"!" ) ) ;
Buggy code:
public final class SignIn2Session extends WebSession { private String user ; protected SignIn2Session ( Application application ) { } public final boolean authenticate ( final String username , final String password ) { if ( ( user ) == null ) { <START_BUG> if ( ( "jonathan" . equalsIgnoreCase ( username ) ) && ( "password" . equalsIgnoreCase ( password ) ) ) { <END_BUG> user = username ; } } return ( user ) != null ; } public boolean isSignedIn ( ) { } public String getUser ( ) { } public void setUser ( final String user ) { } }

Fix:
if ( ( "wicket" . equalsIgnoreCase ( username ) ) && ( "wicket" . equalsIgnoreCase ( password ) ) ) {
Buggy code:
public class CLIAccessControl { private static final Logger log = Logger . getLogger ( CLIAccessControl . class ) ; public static boolean isExecute ( ModelControllerClient client , OperationRequestAddress address , String operation ) { } public static boolean isExecute ( ModelControllerClient client , String [ ] parent , OperationRequestAddress address , String operation ) { final ModelNode accessControl = CLIAccessControl . getAccessControl ( client , parent , address , true ) ; if ( accessControl == null ) { return false ; } if ( ! ( accessControl . has ( DEFAULT ) ) ) { CLIAccessControl . log . warn ( ( "access-control<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>defaults:<seq2seq4repair_space>" + accessControl ) ) ; return false ; } final ModelNode defaults = accessControl . get ( DEFAULT ) ; if ( ! ( defaults . has ( OPERATIONS ) ) ) { <START_BUG> CLIAccessControl . log . warn ( ( "access-control//default<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>operations:<seq2seq4repair_space>" + defaults ) ) ; <END_BUG> return false ; } final ModelNode operations = defaults . get ( OPERATIONS ) ; if ( ! ( operations . has ( operation ) ) ) { if ( CLIAccessControl . log . isTraceEnabled ( ) ) { CLIAccessControl . log . trace ( ( "The<seq2seq4repair_space>operation<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>description:<seq2seq4repair_space>" + operation ) ) ; } return false ; } final ModelNode opAC = operations . get ( operation ) ; if ( ! ( opAC . has ( EXECUTE ) ) ) { CLIAccessControl . log . warn ( ( ( ( "'execute'<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>for<seq2seq4repair_space>" + operation ) + "<seq2seq4repair_space>in<seq2seq4repair_space>" ) + accessControl ) ) ; return false ; } return opAC . get ( EXECUTE ) . asBoolean ( ) ; } public static ModelNode getAccessControl ( ModelControllerClient client , OperationRequestAddress address , boolean operations ) { } public static ModelNode getAccessControl ( ModelControllerClient client , String [ ] parent , OperationRequestAddress address , boolean operations ) { } private static void setAddress ( ModelNode request , String [ ] parent , OperationRequestAddress address ) { } }

Fix:
CLIAccessControl . log . warn ( ( "access-control//default<seq2seq4repair_space>is<seq2seq4repair_space>missing<seq2seq4repair_space>operations:<seq2seq4repair_space>" + accessControl ) ) ;
Buggy code:
@ SuppressWarnings ( "rawtypes" ) public class Branch { private IBPNode cur ; private RealVector inEdges ; private boolean waiting ; private boolean merged ; public Branch ( IBPNode c , RealVector v , boolean w , boolean m ) { } @ Override public String toString ( ) { <START_BUG> return ( ( cur . getName ( ) ) + "," ) + ( inEdges ) ; <END_BUG> } public IBPNode getCur ( ) { } public RealVector getInEdges ( ) { } public void setInEdges ( RealVector inEdges ) { } public boolean isWaiting ( ) { } public void setWaiting ( boolean waiting ) { } public boolean isMerged ( ) { } }

Fix:
return ( ( cur . getLabel ( ) ) + "," ) + ( inEdges ) ;
Buggy code:
public class ProgressMonitorJobsDialog extends ProgressMonitorDialog { private DetailedProgressViewer viewer ; private int viewerHeight = - 1 ; Composite viewerComposite ; private Button detailsButton ; private long watchTime = - 1 ; protected boolean alreadyClosed = false ; private IProgressMonitor wrapperedMonitor ; protected boolean enableDetailsButton = false ; public ProgressMonitorJobsDialog ( Shell parent ) { } protected Control createDialogArea ( Composite parent ) { } void handleDetailsButtonSelect ( ) { Shell shell = getShell ( ) ; Point shellSize = shell . getSize ( ) ; Composite composite = ( ( Composite ) ( getDialogArea ( ) ) ) ; if ( ( viewer ) != null ) { viewer . getControl ( ) . dispose ( ) ; viewer = null ; composite . layout ( ) ; shell . setSize ( shellSize . x , ( ( shellSize . y ) - ( viewerHeight ) ) ) ; detailsButton . setText ( ProgressMonitorJobsDialog_DetailsTitle ) ; } else { <START_BUG> if ( ( ProgressManager . getInstance ( ) . getRootElements ( DEBUG_SHOW_SYSTEM_JOBS ) . length ) == 0 ) { <END_BUG> detailsButton . setEnabled ( false ) ; return ; } viewer = new DetailedProgressViewer ( viewerComposite , ( ( ( ( SWT . MULTI ) | ( SWT . H_SCROLL ) ) | ( SWT . V_SCROLL ) ) | ( SWT . BORDER ) ) ) ; viewer . setSorter ( new ViewerSorter ( ) { public int compare ( Viewer testViewer , Object e1 , Object e2 ) { return ( ( Comparable ) ( e1 ) ) . compareTo ( e2 ) ; } } ) ; viewer . setContentProvider ( new ProgressViewerContentProvider ( viewer , true , false ) { public Object [ ] getElements ( Object inputElement ) { return super . getElements ( inputElement ) ; } } ) ; viewer . setLabelProvider ( new ProgressLabelProvider ( ) ) ; viewer . setInput ( this ) ; GridData viewerData = new GridData ( GridData . FILL_BOTH ) ; viewer . getControl ( ) . setLayoutData ( viewerData ) ; GridData viewerCompositeData = ( ( GridData ) ( viewerComposite . getLayoutData ( ) ) ) ; viewerCompositeData . heightHint = convertHeightInCharsToPixels ( 10 ) ; viewerComposite . layout ( true ) ; viewer . getControl ( ) . setVisible ( true ) ; viewerHeight = viewerComposite . computeTrim ( 0 , 0 , 0 , viewerCompositeData . heightHint ) . height ; detailsButton . setText ( ProgressMonitorJobsDialog_HideTitle ) ; shell . setSize ( shellSize . x , ( ( shellSize . y ) + ( viewerHeight ) ) ) ; } } protected void createButtonsForButtonBar ( Composite parent ) { } protected void createSpacer ( Composite parent ) { } protected void createDetailsButton ( Composite parent ) { } protected Control createButtonBar ( Composite parent ) { } protected void clearCursors ( ) { } protected void updateForSetBlocked ( IStatus reason ) { } public void run ( boolean fork , boolean cancelable , IRunnableWithProgress runnable ) throws InterruptedException , InvocationTargetException { } protected void enableDetails ( boolean enableState ) { } public void watchTicks ( ) { } public void createWrapperedMonitor ( ) { } public IProgressMonitor getProgressMonitor ( ) { } public boolean close ( ) { } }

Fix:
if ( ( ProgressManager . getInstance ( ) . getRootElements ( DEBUG_SHOW_ALL_JOBS ) . length ) == 0 ) {
Buggy code:
public class MethodDeclaration extends AbstractMethodDeclaration { public TypeReference returnType ; public TypeParameter [ ] typeParameters ; public MethodDeclaration ( CompilationResult compilationResult ) { } public void analyseCode ( ClassScope classScope , InitializationFlowContext initializationContext , FlowInfo flowInfo ) { } public boolean isMethod ( ) { } public void parseStatements ( Parser parser , CompilationUnitDeclaration unit ) { } public StringBuffer printReturnType ( int indent , StringBuffer output ) { } public void resolveStatements ( ) { if ( ( ( this . returnType ) != null ) && ( ( this . binding ) != null ) ) { this . returnType . resolvedType = this . binding . returnType ; } if ( CharOperation . equals ( scope . enclosingSourceType ( ) . sourceName , selector ) ) { scope . problemReporter ( ) . methodWithConstructorName ( this ) ; } <START_BUG> switch ( scope . referenceType ( ) . getKind ( ) ) { <END_BUG> case ENUM : if ( ( this . selector ) == ( TypeConstants . VALUES ) ) break ; if ( ( this . selector ) == ( TypeConstants . VALUEOF ) ) break ; case CLASS : if ( ( ( modifiers ) & ( AccSemicolonBody ) ) != 0 ) { if ( ( ( modifiers ) & ( AccNative ) ) == 0 ) if ( ( ( modifiers ) & ( AccAbstract ) ) == 0 ) scope . problemReporter ( ) . methodNeedBody ( this ) ; } else { if ( ( ( ( modifiers ) & ( AccNative ) ) != 0 ) || ( ( ( modifiers ) & ( AccAbstract ) ) != 0 ) ) scope . problemReporter ( ) . methodNeedingNoBody ( this ) ; } } super . resolveStatements ( ) ; } public void traverse ( ASTVisitor visitor , ClassScope classScope ) { } public TypeParameter [ ] typeParameters ( ) { } }

Fix:
switch ( scope . referenceType ( ) . kind ( ) ) {
Buggy code:
public class DoStatement extends Statement { public Expression condition ; public Statement action ; private Label breakLabel ; private Label continueLabel ; int mergedInitStateIndex = - 1 ; public DoStatement ( Expression condition , Statement action , int s , int e ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public StringBuffer printStatement ( int indent , StringBuffer output ) { } public void resolve ( BlockScope scope ) { TypeBinding type = condition . resolveTypeExpecting ( scope , BooleanBinding ) ; <START_BUG> condition . implicitWidening ( type , type ) ; <END_BUG> if ( ( action ) != null ) action . resolve ( scope ) ; } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
condition . computeConversion ( scope , type , type ) ;
Buggy code:
public class PackageFragment extends Openable implements IPackageFragment { protected static IClassFile [ ] fgEmptyClassFileList = new IClassFile [ ] { } ; protected static ICompilationUnit [ ] fgEmptyCompilationUnitList = new ICompilationUnit [ ] { } ; protected PackageFragment ( IPackageFragmentRoot root , String name ) { } protected boolean computeChildren ( OpenableElementInfo info , IResource resource ) throws JavaModelException { } public boolean containsJavaResources ( ) throws JavaModelException { } public void copy ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public ICompilationUnit createCompilationUnit ( String name , String contents , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected OpenableElementInfo createElementInfo ( ) { } public void delete ( boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected boolean generateInfos ( OpenableElementInfo info , IProgressMonitor pm , Map newElements , IResource underlyingResource ) throws JavaModelException { } public IClassFile getClassFile ( String name ) { } public IClassFile [ ] getClassFiles ( ) throws JavaModelException { } public ICompilationUnit getCompilationUnit ( String name ) { } public ICompilationUnit [ ] getCompilationUnits ( ) throws JavaModelException { } protected char getHandleMementoDelimiter ( ) { } public int getKind ( ) throws JavaModelException { } public Object [ ] getNonJavaResources ( ) throws JavaModelException { if ( this . isDefaultPackage ( ) ) { return JavaElementInfo . NO_NON_JAVA_RESOURCES ; } else { <START_BUG> return ( ( PackageFragmentInfo ) ( getElementInfo ( ) ) ) . getNonJavaResources ( getResource ( ) ) ; <END_BUG> } } public IPath getPath ( ) { } public IResource getResource ( ) { } public IResource getUnderlyingResource ( ) throws JavaModelException { } public boolean hasSubpackages ( ) throws JavaModelException { } public boolean isDefaultPackage ( ) { } public void move ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected void openWhenClosed ( IProgressMonitor pm ) throws JavaModelException { } public void refreshChildren ( ) { } public void rename ( String name , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public IJavaElement rootedAt ( IJavaProject project ) { } protected void toStringChildren ( int tab , StringBuffer buffer , Object info ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { } }

Fix:
return ( ( PackageFragmentInfo ) ( getElementInfo ( ) ) ) . getNonJavaResources ( getResource ( ) , ( ( PackageFragmentRoot ) ( getPackageFragmentRoot ( ) ) ) ) ;
Buggy code:
public class MemoryMapState < T > implements ITupleCollection , Snapshottable < T > , MapState < T > { MemoryMapState . MemoryMapStateBacking < OpaqueValue > _backing ; SnapshottableMap < T > _delegate ; public MemoryMapState ( String id ) { } public T update ( ValueUpdater updater ) { } public void set ( T o ) { } public T get ( ) { } public void beginCommit ( Long txid ) { } public void commit ( Long txid ) { } public Iterator < List < Object > > getTuples ( ) { } public List < T > multiUpdate ( List < List < Object > > keys , List < ValueUpdater > updaters ) { } public void multiPut ( List < List < Object > > keys , List < T > vals ) { } public List < T > multiGet ( List < List < Object > > keys ) { } public static class Factory implements StateFactory { String _id ; public Factory ( ) { } @ Override public State makeState ( Map conf , IMetricsContext metrics , int partitionIndex , int numPartitions ) { <START_BUG> return new MemoryMapState ( _id ) ; <END_BUG> } } static ConcurrentHashMap < String , Map < List < Object > , Object > > _dbs = new ConcurrentHashMap < String , Map < List < Object > , Object > > ( ) ; static class MemoryMapStateBacking < T > implements ITupleCollection , IBackingMap < T > { public static void clearAll ( ) { } Map < List < Object > , T > db ; Long currTx ; public MemoryMapStateBacking ( String id ) { } @ Override public List < T > multiGet ( List < List < Object > > keys ) { } @ Override public void multiPut ( List < List < Object > > keys , List < T > vals ) { } @ Override public Iterator < List < Object > > getTuples ( ) { } } }

Fix:
return new MemoryMapState ( ( ( _id ) + partitionIndex ) ) ;
Buggy code:
public class OpenMessageWithComposerCommand extends FolderCommand { ComposerController controller ; public OpenMessageWithComposerCommand ( FrameController frameController , DefaultCommandReference [ ] references ) { } public void updateGUI ( ) throws Exception { } public void execute ( Worker worker ) throws Exception { Folder folder = ( ( Folder ) ( ( ( org . columba . mail . command . FolderCommandReference ) ( getReferences ( ) [ 0 ] ) ) . getFolder ( ) ) ) ; Object [ ] uids = ( ( org . columba . mail . command . FolderCommandReference ) ( getReferences ( ) [ 0 ] ) ) . getUids ( ) ; <START_BUG> Message message = ( ( Message ) ( folder . getMessage ( uids [ 0 ] , worker ) ) ) ; <END_BUG> ColumbaHeader header = ( ( ColumbaHeader ) ( message . getHeader ( ) ) ) ; MimePartTree mimePartTree = folder . getMimePartTree ( uids [ 0 ] , worker ) ; String source = folder . getMessageSource ( uids [ 0 ] , worker ) ; message . setSource ( source ) ; controller = new ComposerController ( frameController ) ; MessageBuilder . getInstance ( ) . openMessage ( message , controller . getModel ( ) ) ; } public void undo ( Worker worker ) throws Exception { } public void redo ( Worker worker ) throws Exception { } }

Fix:
Message message = new Message ( ) ;
Buggy code:
public class BindingRemoveHandler extends SocketBindingRemoveHandler { public static final BindingRemoveHandler INSTANCE = new BindingRemoveHandler ( ) ; private BindingRemoveHandler ( ) { } @ Override protected boolean requiresRuntime ( OperationContext context ) { <START_BUG> return context . isNormalServer ( ) ; <END_BUG> } protected void performRuntime ( OperationContext context , ModelNode operation , ModelNode model ) { } protected void recoverServices ( OperationContext context , ModelNode operation , ModelNode model ) throws OperationFailedException { } }

Fix:
return true ;
Buggy code:
public class CsvWriteReadTest { public static void main ( String [ ] args ) { <START_BUG> String fileName = ( System . getProperty ( "user.home" ) ) + "//transaction1.csv" ; <END_BUG> System . out . println ( "Write<seq2seq4repair_space>CSV<seq2seq4repair_space>file:" ) ; WriteTransactionCsv . writeCsvFile ( fileName ) ; } No newline ; at end ; of file ; }

Fix:
String fileName = ( System . getProperty ( "user.home" ) ) + "//transaction.txt" ;
Buggy code:
public class ResponseBodyTests { @ Test public void json ( ) throws Exception { <START_BUG> standaloneSetup ( new ResponseBodyTests . PersonController ( ) ) . build ( ) . perform ( get ( "//person//Lee" ) . accept ( APPLICATION_JSON ) ) . andExpect ( status ( ) . isOk ( ) ) . andExpect ( content ( ) . mimeType ( "application//json;charset=UTF-8" ) ) . andExpect ( jsonPath ( "$.name" ) . value ( "Lee" ) ) ; <END_BUG> } @ Controller private class PersonController { @ RequestMapping ( "//person//{name}" ) @ ResponseBody public Person get ( @ PathVariable String name ) { } } }

Fix:
standaloneSetup ( new ResponseBodyTests . PersonController ( ) ) . build ( ) . perform ( get ( "//person//Lee" ) . accept ( APPLICATION_JSON ) ) . andExpect ( status ( ) . isOk ( ) ) . andExpect ( content ( ) . contentType ( "application//json;charset=UTF-8" ) ) . andExpect ( jsonPath ( "$.name" ) . value ( "Lee" ) ) ;
Buggy code:
@ Configuration @ EnableWebMvcSecurity @ Order ( 1 ) public class MvcSecure extends WebSecurityConfigurerAdapter { @ Autowired private UserDetailsService userDetailsService ; @ Override protected void configure ( HttpSecurity http ) throws Exception { <START_BUG> http . csrf ( ) . disable ( ) . authorizeRequests ( ) . antMatchers ( "//" , "//login" , "//general//**" ) . permitAll ( ) . anyRequest ( ) . authenticated ( ) . and ( ) . formLogin ( ) . failureHandler ( authenticationFailureHandler ( ) ) . successHandler ( authenticationSuccessHandler ( ) ) . loginPage ( "//login" ) . and ( ) . logout ( ) . logoutSuccessHandler ( logoutSuccessHandler ( ) ) . permitAll ( ) ; <END_BUG> } @ Override protected void configure ( AuthenticationManagerBuilder auth ) throws Exception { } @ Bean public ShaPasswordEncoder bCryptPasswordEncoder ( ) { } @ Bean public AuthenticationSuccessHandler authenticationSuccessHandler ( ) { } @ Bean public AuthenticationFailureHandler authenticationFailureHandler ( ) { } @ Bean public LogoutSuccessHandler logoutSuccessHandler ( ) { } }

Fix:
http . csrf ( ) . disable ( ) . authorizeRequests ( ) . antMatchers ( "//login" , "//general//**" ) . permitAll ( ) . anyRequest ( ) . authenticated ( ) . and ( ) . formLogin ( ) . failureHandler ( authenticationFailureHandler ( ) ) . successHandler ( authenticationSuccessHandler ( ) ) . loginPage ( "//login" ) . and ( ) . logout ( ) . logoutSuccessHandler ( logoutSuccessHandler ( ) ) . permitAll ( ) ;
Buggy code:
public class IndexParamWithStatelessIFrameTest extends WicketTestCase { public void testIndexedUrlMountedPageWithComponentThatUsesUrlForResourceListener ( ) throws Exception { tester . getApplication ( ) . mount ( new IndexedParamUrlCodingStrategy ( "//test" , TestPageWithIFrame . class ) ) ; TestPageWithIFrame test = new TestPageWithIFrame ( new PageParameters ( "0=foo,1=bar" ) ) ; tester . startPage ( test ) ; tester . assertRenderedPage ( TestPageWithIFrame . class ) ; tester . assertNoErrorMessage ( ) ; <START_BUG> tester . assertContains ( "src=\"test//wicket:interface//%3A0%3Aframe%3A%3AIResourceListener%3A%3A//\"" ) ; <END_BUG> } }

Fix:
tester . assertContains ( "src=\"test//wicket:interface//:0:frame::IResourceListener:://\"" ) ;
Buggy code:
public class ArrayIterator2Test < E > extends AbstractIteratorTest < E > { protected int [ ] testArray = new int [ ] { 2 , 4 , 6 , 8 } ; public ArrayIterator2Test ( final String testName ) { } @ Override public ArrayIterator < E > makeEmptyIterator ( ) { } @ Override public ArrayIterator < E > makeObject ( ) { } public ArrayIterator < E > makeArrayIterator ( final Object array ) { } public ArrayIterator < E > makeArrayIterator ( final Object array , final int index ) { } public ArrayIterator < E > makeArrayIterator ( final Object array , final int start , final int end ) { } @ Override public boolean supportsRemove ( ) { } public void testIterator ( ) { final Iterator < E > iter = makeObject ( ) ; for ( final int element : testArray ) { <START_BUG> final Integer testValue = new Integer ( element ) ; <END_BUG> final Number iterValue = ( ( Number ) ( iter . next ( ) ) ) ; ArrayIterator2Test . assertEquals ( "Iteration<seq2seq4repair_space>value<seq2seq4repair_space>is<seq2seq4repair_space>correct" , testValue , iterValue ) ; } ArrayIterator2Test . assertTrue ( "Iterator<seq2seq4repair_space>should<seq2seq4repair_space>now<seq2seq4repair_space>be<seq2seq4repair_space>empty" , ( ! ( iter . hasNext ( ) ) ) ) ; try { iter . next ( ) ; } catch ( final Exception e ) { ArrayIterator2Test . assertTrue ( "NoSuchElementException<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>thrown" , e . getClass ( ) . equals ( new NoSuchElementException ( ) . getClass ( ) ) ) ; } } public void testSetArray ( ) { } public void testIndexedArray ( ) { } }

Fix:
final Integer testValue = Integer . valueOf ( element ) ;
Buggy code:
public class DeploymentDependenciesProcessor implements DeploymentUnitProcessor { private static final QName ROOT_1_0 = new QName ( DeploymentDependenciesParserV_1_0 . NAMESPACE_1_0 , "jboss-deployment-dependencies" ) ; public static void registerJBossXMLParsers ( ) { <START_BUG> DeployerChainAddHandler . addDeploymentProcessor ( SERVER_NAME , STRUCTURE , STRUCTURE_REGISTER_JBOSS_ALL_DEPLOYMENT_DEPS , new org . jboss . as . server . deployment . jbossallxml . JBossAllXmlParserRegisteringProcessor < DeploymentDependencies > ( DeploymentDependenciesProcessor . ROOT_1_0 , DeploymentDependencies . ATTACHMENT_KEY , DeploymentDependenciesParserV_1_0 . INSTANCE ) ) ; <END_BUG> } @ Override public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { } private void processDependencies ( final DeploymentPhaseContext phaseContext , final DeploymentUnit deploymentUnit ) { } @ Override public void undeploy ( final DeploymentUnit context ) { } }

Fix:
DeployerChainAddHandler . addDeploymentProcessor ( SERVER_NAME , STRUCTURE , STRUCTURE_REGISTER_JBOSS_ALL_XML_PARSER , new org . jboss . as . server . deployment . jbossallxml . JBossAllXmlParserRegisteringProcessor < DeploymentDependencies > ( DeploymentDependenciesProcessor . ROOT_1_0 , DeploymentDependencies . ATTACHMENT_KEY , DeploymentDependenciesParserV_1_0 . INSTANCE ) ) ;