nus-yam/ex-repair huggingface dataset:
Buggy code:
public abstract class Generator { protected GeneratorConfig generatorConfig ; protected int MAX_Segments ; protected int MAX_Routes ; protected int MAX_SwitchPositions ; protected int MAX_Sensors ; protected int posLengthErrorPercent ; protected int switchSensorErrorPercent ; protected int routeSensorErrorPercent ; protected int signalNeighborErrorPercent ; protected int switchSetErrorPercent ; protected Random random = new Random ( TrainBenchmarkConstants . RANDOM_SEED ) ; protected int nextRandom ( ) { } protected static final Map < String , Object > emptyMap = Collections . emptyMap ( ) ; protected static int MAX_SEGMENT_LENGTH = 1000 ; public void generateModels ( ) throws FileNotFoundException , IOException { } protected abstract String syntax ( ) { } private void initializeConstants ( ) { switch ( generatorConfig . getScenario ( ) ) { case "User" : MAX_Segments = 5 ; MAX_Routes = 20 * ( generatorConfig . getSize ( ) ) ; MAX_SwitchPositions = 20 ; MAX_Sensors = 10 ; posLengthErrorPercent = 2 ; switchSensorErrorPercent = 2 ; routeSensorErrorPercent = 2 ; signalNeighborErrorPercent = 7 ; switchSetErrorPercent = 2 ; break ; <START_BUG> case "XForm" : <END_BUG> MAX_Segments = 5 ; MAX_Routes = 20 * ( generatorConfig . getSize ( ) ) ; MAX_SwitchPositions = 20 ; MAX_Sensors = 10 ; posLengthErrorPercent = 10 ; switchSensorErrorPercent = 4 ; routeSensorErrorPercent = 10 ; signalNeighborErrorPercent = 8 ; switchSetErrorPercent = 10 ; break ; case "Test" : MAX_Segments = 1 ; MAX_Routes = 2 * ( generatorConfig . getSize ( ) ) ; MAX_SwitchPositions = 20 ; MAX_Sensors = 10 ; posLengthErrorPercent = 10 ; switchSensorErrorPercent = 4 ; routeSensorErrorPercent = 10 ; signalNeighborErrorPercent = 8 ; switchSetErrorPercent = 10 ; break ; default : throw new UnsupportedOperationException ( "Scenario<seq2seq4repair_space>not<seq2seq4repair_space>supported." ) ; } } protected abstract void initModel ( ) throws IOException { } protected void generateModel ( ) throws FileNotFoundException , IOException { } protected abstract void persistModel ( ) throws IOException { } protected abstract Object createNode ( String type , Map < String , Object > attributes , Map < String , Object > outgoingEdges , Map < String , Object > incomingEdges ) throws IOException { } protected abstract void createEdge ( String label , Object from , Object to ) throws IOException { } protected abstract void setAttribute ( String type , Object node , String key , Object value ) throws IOException { } protected Object createNode ( final String type , final Map < String , Object > attributes , final Map < String , Object > outgoingEdges ) throws IOException { } protected Object createNode ( final String type , final Map < String , Object > attributes ) throws IOException { } protected Object createNode ( final String type ) throws IOException { } protected void beginRoute ( ) throws IOException { } protected void endRoute ( ) { } }

Fix:
case "Repair" :
Buggy code:
public class ColorHistogramLibrary { private ArrayList < Integer > imageIds ; private ArrayList < RGBHistogram > rgbHistograms ; private ArrayList < HSVHistogram > hsvHistograms ; public ColorHistogramLibrary ( ) { } public boolean initializeWithTestDataset ( ) throws FileNotFoundException { } public ArrayList < DistancePair > compare ( RGBHistogram rgbHistogram , String method ) { } public ArrayList < DistancePair > compare ( HSVHistogram hsvHistogram , String method ) { <START_BUG> if ( method == ( ColorHistogramDistance . QUADRATIC ) ) { <END_BUG> return null ; } ArrayList < HasDoubleValue > tempResult = new ArrayList < HasDoubleValue > ( ) ; for ( int i = 0 ; i != ( imageIds . size ( ) ) ; i ++ ) { tempResult . add ( new DistancePair ( this . imageIds . get ( i ) , ColorHistogramDistance . compare ( hsvHistogram , this . hsvHistograms . get ( i ) , method ) ) ) ; } Algorithm . quicksort ( tempResult ) ; ArrayList < DistancePair > result = new ArrayList < DistancePair > ( ) ; for ( HasDoubleValue item : tempResult ) { result . add ( ( ( DistancePair ) ( item ) ) ) ; } return result ; } }

Fix:
if ( method . equals ( QUADRATIC ) ) {
Buggy code:
public class EmptyStatement extends Statement { public EmptyStatement ( int startPosition , int endPosition ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public boolean complainIfUnreachable ( FlowInfo flowInfo , BlockScope scope , boolean didAlreadyComplain ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public StringBuffer printStatement ( int tab , StringBuffer output ) { } public void resolve ( BlockScope scope ) { <START_BUG> if ( ( ( bits ) & ( ASTNode . IsUsefulEmptyStatement ) ) == 0 ) { <END_BUG> scope . problemReporter ( ) . superfluousSemicolon ( this . sourceStart , this . sourceEnd ) ; } else { scope . problemReporter ( ) . emptyControlFlowStatement ( this . sourceStart , this . sourceEnd ) ; } } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
if ( ( ( this . bits ) & ( ASTNode . IsUsefulEmptyStatement ) ) == 0 ) {
Buggy code:
public abstract class GridView extends DataViewBase { private int columns = 1 ; private int rows = Integer . MAX_VALUE ; public GridView ( MarkupContainer parent , final String id , IDataProvider dataProvider ) { } public int getColumns ( ) { } public GridView setColumns ( int cols ) { } public int getRows ( ) { } public GridView setRows ( int rows ) { } private void updateItemsPerPage ( ) { } @ Override protected void addItems ( Iterator items ) { if ( items . hasNext ( ) ) { final int cols = getColumns ( ) ; int row = 0 ; do { Item rowItem = newRowItem ( newChildId ( ) , row ) ; <START_BUG> RepeatingView rowView = new RepeatingView ( rowItem , "cols" ) ; <END_BUG> for ( int index = 0 ; index < cols ; index ++ ) { final Item cellItem ; if ( items . hasNext ( ) ) { cellItem = ( ( Item ) ( items . next ( ) ) ) ; } else { cellItem = newEmptyItem ( newChildId ( ) , index ) ; populateEmptyItem ( cellItem ) ; } } row ++ ; } while ( items . hasNext ( ) ) ; } } public IDataProvider getDataProvider ( ) { } @ Override public Iterator getItems ( ) { } protected abstract void populateEmptyItem ( Item item ) { } protected Item newEmptyItem ( final String id , int index ) { } protected Item newRowItem ( final String id , int index ) { } private static class ItemsIterator implements Iterator { private Iterator rows ; private Iterator cells ; private Item next ; public ItemsIterator ( Iterator rows ) { } public void remove ( ) { } public boolean hasNext ( ) { } public Object next ( ) { } private void findNext ( ) { } } }

Fix:
new wicket . extensions . markup . html . repeater . RepeatingView ( rowItem , "cols" ) ;
Buggy code:
public class Vision extends Subsystem { private CameraServer server ; private int session ; private String cameraName ; private Image frame ; public GetImageSizeResult size ; public int crosshairOffsetX = 0 ; public int crosshairOffsetY = 0 ; public Vision ( String cameraName ) { } @ Override protected void initDefaultCommand ( ) { } public void startAutoCapture ( ) { } public int useCamera ( ) { } public Image grabPicture ( ) { } public Image showCrosshairOnImage ( Image image ) { } public Image showCrosshairOnImage ( Image image , int offsetX , int offsetY ) { } public void drawLineAboveCenter ( Image image , int offsetY , int lineWidth , int lineLength ) { } public void showRulerOnImage ( Image image ) { <START_BUG> int rulerLineCount = ( ( ( size . height ) // 2 ) // ( VisionConfig . rulerLineGapSize ) ) - 2 ; <END_BUG> for ( int i = 1 ; i < rulerLineCount ; i ++ ) { int offset = i * ( VisionConfig . rulerLineGapSize ) ; drawLineAboveCenter ( image , offset , rulerLineWidth , rulerLineLength ) ; } } public void stopCamera ( ) { } }

Fix:
int rulerLineCount = ( ( size . height ) // 2 ) // ( VisionConfig . rulerLineGapSize ) ;
Buggy code:
public class AllocationExpression extends Expression implements InvocationSite { public TypeReference type ; public Expression [ ] arguments ; public MethodBinding binding ; protected MethodBinding codegenBinding ; MethodBinding syntheticAccessor ; public TypeReference [ ] typeArguments ; public TypeBinding [ ] genericTypeArguments ; public FieldDeclaration enumConstant ; public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { checkCapturedLocalInitializationIfNecessary ( ( ( ReferenceBinding ) ( this . binding . declaringClass . erasure ( ) ) ) , currentScope , flowInfo ) ; if ( ( arguments ) != null ) { for ( int i = 0 , count = arguments . length ; i < count ; i ++ ) { flowInfo = arguments [ i ] . analyseCode ( currentScope , flowContext , flowInfo ) . unconditionalInits ( ) ; } } ReferenceBinding [ ] thrownExceptions ; if ( ( ( thrownExceptions = this . binding . thrownExceptions ) . length ) != 0 ) { <START_BUG> flowContext . checkExceptionHandlers ( thrownExceptions , this , flowInfo , currentScope ) ; <END_BUG> } manageEnclosingInstanceAccessIfNecessary ( currentScope , flowInfo ) ; manageSyntheticAccessIfNecessary ( currentScope , flowInfo ) ; return flowInfo ; } public void checkCapturedLocalInitializationIfNecessary ( ReferenceBinding checkedType , BlockScope currentScope , FlowInfo flowInfo ) { } public Expression enclosingInstance ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public TypeBinding [ ] genericTypeArguments ( ) { } public boolean isSuperAccess ( ) { } public boolean isTypeAccess ( ) { } public void manageEnclosingInstanceAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { } public void setActualReceiverType ( ReferenceBinding receiverType ) { } public void setDepth ( int i ) { } public void setFieldIndex ( int i ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
flowContext . checkExceptionHandlers ( thrownExceptions , this , flowInfo . unconditionalCopy ( ) , currentScope ) ;
Buggy code:
public class WinScreen extends World { WinText winText = new WinText ( ) ; public WinScreen ( ) { } public void prepare ( ) { getBackground ( ) . scale ( 650 , 400 ) ; <START_BUG> addObject ( WinText , 278 , 305 ) ; <END_BUG> } }

Fix:
addObject ( winText , 278 , 305 ) ;
Buggy code:
public class TwoDSix extends MultiDieRoll { public TwoDSix ( int minRoll , BloodBowlDieReroll reroll ) { } public TwoDSix newInstance ( BloodBowlDieReroll reroll_copy ) { } @ Override public double probabilityWithoutReroll ( ) { int maximumRoll = 12 ; int possibleCombination = 36 ; double succesfulOutcomes = 0 ; int triangleLenght ; if ( ( this . requiredRoll ) > 7 ) { triangleLenght = ( maximumRoll + 1 ) - ( this . requiredRoll ) ; succesfulOutcomes = triangleArea ( triangleLenght ) ; } else { <START_BUG> triangleLenght = ( this . requiredRoll ) - 1 ; <END_BUG> succesfulOutcomes = possibleCombination - ( triangleArea ( triangleLenght ) ) ; } double res = succesfulOutcomes // possibleCombination ; return res ; } private int triangleArea ( int length ) { } @ Override public String diceName ( ) { } }

Fix:
triangleLenght = ( this . requiredRoll ) - 2 ;
Buggy code:
public final class HtmlHeaderSectionHandler extends AbstractMarkupFilter { private static final String BODY = "body" ; private static final String HEAD = "head" ; public static final String HEADER_ID = ( Component . AUTO_COMPONENT_PREFIX ) + "_header" ; private boolean foundHead = false ; private boolean ignoreTheRest = false ; private final Markup markup ; public HtmlHeaderSectionHandler ( final Markup markup , final IMarkupFilter parent ) { } public MarkupElement nextTag ( ) throws ParseException { <START_BUG> ComponentTag tag = nextComponentTag ( ) ; <END_BUG> if ( tag == null ) { return tag ; } if ( ( ignoreTheRest ) == true ) { return tag ; } if ( HtmlHeaderSectionHandler . HEAD . equalsIgnoreCase ( tag . getName ( ) ) ) { if ( ( tag . getNamespace ( ) ) == null ) { if ( tag . isClose ( ) ) { foundHead = true ; } else if ( ( tag . getId ( ) ) == null ) { tag . setId ( HtmlHeaderSectionHandler . HEADER_ID ) ; } tag . setInternalTag ( true ) ; return tag ; } else { foundHead = true ; } } else if ( ( HtmlHeaderSectionHandler . BODY . equalsIgnoreCase ( tag . getName ( ) ) ) && ( ( tag . getNamespace ( ) ) == null ) ) { if ( ( foundHead ) == false ) { insertHeadTag ( ) ; } ignoreTheRest = true ; return tag ; } return tag ; } private void insertHeadTag ( ) { } }

Fix:
final ComponentTag tag = nextComponentTag ( ) ;
Buggy code:
public class XMLParser extends DefaultHandler { private Document dom ; private Sector [ ] [ ] map ; public XMLParser ( ) { } public Sector [ ] [ ] createMap ( String name , int letterSize , int numberSize ) { } private void parseDocument ( ) { Element docEle = dom . getDocumentElement ( ) ; NodeList nodeList = docEle . getElementsByTagName ( "sector" ) ; if ( ( nodeList != null ) && ( ( nodeList . getLength ( ) ) > 0 ) ) { for ( int i = 0 ; i < ( nodeList . getLength ( ) ) ; i ++ ) { Element element = ( ( Element ) ( nodeList . item ( i ) ) ) ; Sector sector = getSector ( element ) ; <START_BUG> map [ sector . getNumber ( ) ] [ sector . getLetter ( ) ] = sector ; <END_BUG> } } } private Sector getSector ( Element sectorElement ) { } private String getTextValue ( Element element , String tagName ) { } private int getIntValue ( Element ele , String tagName ) { } private boolean getBooleanValue ( Element ele , String tagName ) { } private SectorTypeEnum getSectorTypeValue ( Element ele , String tagName ) { } private void parseXmlFile ( String filename ) { } }

Fix:
map [ sector . getLetter ( ) ] [ sector . getNumber ( ) ] = sector ;
Buggy code:
public class PerformAudioPassThru extends RPCRequest { public static final String KEY_MAX_DURATION = "maxDuration" ; public static final String KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_1 = "audioPassThruDisplayText1" ; public static final String KEY_AUDIO_PASS_THRU_DISPLAY_TEXT_2 = "audioPassThruDisplayText2" ; public static final String KEY_MUTE_AUDIO = "muteAudio" ; public static final String KEY_SAMPLING_RATE = "samplingRate" ; public static final String KEY_AUDIO_TYPE = "audioType" ; public static final String KEY_INITIAL_PROMPT = "initialPrompt" ; public static final String KEY_BITS_PER_SAMPLE = "bitsPerSample" ; private List < TTSChunk > initialPrompt ; private String text1 ; private String text2 ; private String samplingRate ; private String bitsPerSample ; private String audioType ; private Integer maxDuration ; private Boolean muteAudio ; public PerformAudioPassThru ( ) { } public PerformAudioPassThru ( JSONObject jsonObject ) { } public void setInitialPrompt ( List < TTSChunk > initialPrompt ) { } public List < TTSChunk > getInitialPrompt ( ) { } public void setAudioPassThruDisplayText1 ( String audioPassThruDisplayText1 ) { } public String getAudioPassThruDisplayText1 ( ) { } public void setAudioPassThruDisplayText2 ( String audioPassThruDisplayText2 ) { } public String getAudioPassThruDisplayText2 ( ) { } public void setSamplingRate ( SamplingRate samplingRate ) { } public SamplingRate getSamplingRate ( ) { } public void setMaxDuration ( Integer maxDuration ) { } <START_BUG> public int getMaxDuration ( ) { <END_BUG> return this . maxDuration ; } public void setBitsPerSample ( BitsPerSample audioQuality ) { } public BitsPerSample getBitsPerSample ( ) { } public void setAudioType ( AudioType audioType ) { } public AudioType getAudioType ( ) { } public Boolean getMuteAudio ( ) { } public void setMuteAudio ( Boolean muteAudio ) { } @ Override public JSONObject getJsonParameters ( int sdlVersion ) { } }

Fix:
public Integer getMaxDuration ( ) {
Buggy code:
public class StandardJMeterEngine implements Runnable , JMeterEngine , JMeterThreadMonitor { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final long serialVersionUID = 233L ; private static final long WAIT_TO_DIE = JMeterUtils . getPropDefault ( "jmeterengine.threadstop.wait" , ( 5 * 1000 ) ) ; private static final int UDP_PORT = JMeterUtils . getPropDefault ( "jmeterengine.nongui.port" , 4445 ) ; private static final boolean exitAfterTest = JMeterUtils . getPropDefault ( "server.exitaftertest" , false ) ; private static final boolean startListenersLater = JMeterUtils . getPropDefault ( "jmeterengine.startlistenerslater" , true ) ; private static volatile StandardJMeterEngine engine ; private static final List < TestListener > testList = new ArrayList < TestListener > ( ) ; private final Map < JMeterThread , Thread > allThreads ; private volatile boolean startingGroups ; private volatile boolean running = false ; private volatile boolean serialized = false ; private HashTree test ; private volatile SearchByClass < TestListener > testListenersSave ; private final String host ; public static void stopEngineNow ( ) { } public static void stopEngine ( ) { } public static synchronized void register ( TestListener tl ) { } public static boolean stopThread ( String threadName ) { } public static boolean stopThreadNow ( String threadName ) { } private static boolean stopThread ( String threadName , boolean now ) { } public StandardJMeterEngine ( ) { } public StandardJMeterEngine ( String host ) { } public void configure ( HashTree testTree ) { } private static class MyThreadGroup extends ThreadGroup { public MyThreadGroup ( String s ) { } @ Override public void uncaughtException ( Thread t , Throwable e ) { } } public void runTest ( ) throws JMeterEngineException { } private void waitForSignals ( ) { } private void removeThreadGroups ( List < ? > elements ) { } @ SuppressWarnings ( "deprecation" ) private void notifyTestListenersOfStart ( SearchByClass < TestListener > testListeners ) { } private void notifyTestListenersOfEnd ( SearchByClass < TestListener > testListeners ) { } private ListedHashTree cloneTree ( ListedHashTree tree ) { } public void reset ( ) { } public synchronized void threadFinished ( JMeterThread thread ) { } public synchronized void stopTest ( ) { } public synchronized void stopTest ( boolean b ) { } private class StopTest implements Runnable { private final boolean now ; private StopTest ( boolean b ) { } public void run ( ) { } } public void run ( ) { } private void scheduleThread ( JMeterThread thread , ThreadGroup group ) { } private boolean verifyThreadsStopped ( ) { } private void tellThreadsToStop ( ) { } public void askThreadsToStop ( ) { <START_BUG> if ( ( StandardJMeterEngine . engine ) == null ) { <END_BUG> StandardJMeterEngine . engine . stopTest ( false ) ; } } private void stopAllThreads ( ) { } public void exit ( ) { } private void pause ( long ms ) { } public void setProperties ( Properties p ) { } }

Fix:
if ( ( StandardJMeterEngine . engine ) != null ) {
Buggy code:
public abstract class RequestCycle { private static final Map constructors = new HashMap ( ) ; private static final ThreadLocal current = new ThreadLocal ( ) ; private static final Map listenerInterfaceMethods = new HashMap ( ) ; private static final Log log = LogFactory . getLog ( RequestCycle . class ) ; protected final Application application ; protected final Request request ; protected Response response ; protected final Session session ; private Page page ; private Page pageBackup ; private boolean redirect ; public static final RequestCycle get ( ) { } public static void registerRequestListenerInterface ( final Class i ) { } protected RequestCycle ( final Application application , final Session session , final Request request , final Response response ) { } public final boolean continueToOriginalDestination ( ) { } public final Application getApplication ( ) { } public final Page getPage ( ) { } public final IPageFactory getPageFactory ( ) { } public final boolean getRedirect ( ) { } public final Request getRequest ( ) { } public final Response getResponse ( ) { } public final Session getSession ( ) { } public final void redirectToInterceptPage ( final Class c ) { } public final void redirectToInterceptPage ( final Class c , final PageParameters parameters ) { } public final void redirectToInterceptPage ( final Page page ) { } public final void render ( ) throws ServletException { } public final void setPage ( final Page page ) { } public final void setRedirect ( final boolean redirect ) { } public void setResponse ( final Response response ) { } public abstract String urlFor ( final Class pageClass , final PageParameters parameters ) { } public abstract String urlFor ( final Component component , final Class listenerInterface ) { } protected final Method getInterfaceMethod ( final String name ) { } protected abstract void onRender ( ) { } protected abstract void redirectToPage ( final Page page ) { } private void handleRenderingException ( RuntimeException e ) { try { ApplicationSettings settings = application . getSettings ( ) ; if ( ( settings . getUnexpectedExceptionDisplay ( ) ) != ( ApplicationSettings . SHOW_NO_EXCEPTION_PAGE ) ) { if ( ( settings . getUnexpectedExceptionDisplay ( ) ) == ( ApplicationSettings . SHOW_INTERNAL_ERROR_PAGE ) ) { setPage ( getPageFactory ( ) . newPage ( application . getPages ( ) . getInternalErrorPage ( ) ) ) ; } else { <START_BUG> setPage ( new ExceptionErrorPage ( e ) ) ; <END_BUG> } redirectToPage ( getPage ( ) ) ; } } catch ( RuntimeException ignored ) { } throw e ; } private void threadDetach ( ) { } }

Fix:
setPage ( new wicket . markup . html . pages . ExceptionErrorPage ( e , getPage ( ) ) ) ;
Buggy code:
public abstract class BaseResourceCollectionWrapper extends DataType implements Cloneable , ResourceCollection { private static final String ONE_NESTED_MESSAGE = "<seq2seq4repair_space>expects<seq2seq4repair_space>exactly<seq2seq4repair_space>one<seq2seq4repair_space>nested<seq2seq4repair_space>resource<seq2seq4repair_space>collection." ; private ResourceCollection rc ; private Collection coll = null ; private boolean cache = true ; public synchronized void setCache ( boolean b ) { } public synchronized boolean isCache ( ) { } public synchronized void add ( ResourceCollection c ) throws BuildException { } public final synchronized Iterator iterator ( ) { } public synchronized int size ( ) { } public synchronized boolean isFilesystemOnly ( ) { if ( isReference ( ) ) { return ( ( BaseResourceCollectionContainer ) ( getCheckedRef ( ) ) ) . isFilesystemOnly ( ) ; } dieOnCircularReference ( ) ; if ( ( ( rc ) == null ) || ( rc . isFilesystemOnly ( ) ) ) { return true ; } for ( Iterator i = cacheCollection ( ) . iterator ( ) ; i . hasNext ( ) ; ) { <START_BUG> if ( ! ( ( i . next ( ) ) instanceof FileResource ) ) { <END_BUG> return false ; } } return true ; } protected synchronized void dieOnCircularReference ( Stack stk , Project p ) throws BuildException { } protected final synchronized ResourceCollection getResourceCollection ( ) { } protected abstract Collection getCollection ( ) { } public synchronized String toString ( ) { } private synchronized Collection cacheCollection ( ) { } private BuildException oneNested ( ) { } }

Fix:
if ( ! ( ( i . next ( ) ) instanceof FileProvider ) ) {
Buggy code:
public class CSVLexerTest { private Lexer getLexer ( final String input , final CSVFormat format ) { } private void assertTokenEquals ( final Token . Type expectedType , final String expectedContent , final Token token ) { } @ Test public void testNextToken1 ( ) throws IOException { } @ Test public void testNextToken2 ( ) throws IOException { } @ Test public void testNextToken2EmptyLines ( ) throws IOException { } @ Test public void testNextToken3 ( ) throws IOException { } @ Test public void testNextToken3Escaping ( ) throws IOException { } @ Test public void testNextToken3BadEscaping ( ) throws IOException { } @ Test public void testNextToken4 ( ) throws IOException { } @ Test public void testNextToken5 ( ) throws IOException { } @ Test public void testNextToken6 ( ) throws IOException { final String code = "a;\'b<seq2seq4repair_space>and<seq2seq4repair_space>\'\'<seq2seq4repair_space>more\n\'\n!comment;;;;\n;;" ; <START_BUG> final CSVFormat format = DEFAULT . withDelimiter ( ';' ) . withEncapsulator ( '\'' ) . withCommentStart ( '!' ) ; <END_BUG> final Lexer parser = getLexer ( code , format ) ; assertTokenEquals ( Type . TOKEN , "a" , parser . nextToken ( new Token ( ) ) ) ; assertTokenEquals ( Type . EORECORD , "b<seq2seq4repair_space>and<seq2seq4repair_space>\'<seq2seq4repair_space>more\n" , parser . nextToken ( new Token ( ) ) ) ; } @ Test public void testDelimiterIsWhitespace ( ) throws IOException { } }

Fix:
final CSVFormat format = DEFAULT . withDelimiter ( ';' ) . withQuoteChar ( '\'' ) . withCommentStart ( '!' ) ;
Buggy code:
public class Consumer extends AgentClass { static double percentDurable = 0.7 ; static int maximumSplurge = 20 ; static double loanPaymentPercentage = 0.2 ; double income = 0 ; double cash = 0 ; double spending = 0 ; double deltaNetWorth = 0 ; double currentSplurge = 19000 ; double valueOfDefaults = 0 ; double risk = 0 ; double desire = 0 ; double assets = 0 ; private Banker bankPending = null ; private Loan loanPending = null ; private Boolean loanAccepted = false ; List < Double > observedSplurges = new ArrayList < Double > ( ) ; List < Loan > loans = new ArrayList < Loan > ( ) ; List < Banker > rejectedBanks = new ArrayList < Banker > ( ) ; public Consumer ( double income , double spending , double risk , double desire ) { } public void beforeBanker ( ) { } public void afterBanker ( ) { } private void receiveIncome ( ) { } private void spendMoney ( ) { } private void makeLoanPayments ( ) { } private boolean makeLoanPayment ( Loan l ) { l . accrueInterest ( ) ; double payment = l . getPayment ( ) ; System . out . println ( payment ) ; <START_BUG> boolean fail = ( this . risk ) > ( RandomHelper . nextDoubleFromTo ( 0 , 1 ) ) ; <END_BUG> this . cash -= payment ; l . makePayment ( payment ) ; if ( ( l . principle ) <= 0 ) { this . updateRisk ( l ) ; this . loans . remove ( l ) ; return true ; } if ( fail ) { l . defaulted = true ; this . valueOfDefaults += l . principle ; this . updateRisk ( l ) ; return false ; } return true ; } private double netWorth ( ) { } private double disposableIncome ( ) { } private void updateRisk ( Loan l ) { } private int splurgeDesire ( ) { } private double splurgeThreshold ( ) { } private boolean doesSplurge ( ) { } private double nextSplurgeAmount ( double prevSplurge ) { } private double desiredLoanAmount ( ) { } private double desiredPaymentAmount ( ) { } private List < Double > receiveNeighborsSplurging ( ) { } private Banker getNearestAvalibleBank ( ) { } private boolean requestLoan ( Banker bank ) { } public void setBankPending ( Banker bankPending ) { } public void setLoanPending ( Loan loanPending ) { } public void setLoanAccepted ( Boolean loanAccepted ) { } private double adjustedDesire ( double value ) { } @ Parameter ( displayName = "Net<seq2seq4repair_space>Worth" , usageName = "netWorth" ) public double getNetWorth ( ) { } public void setNetWorth ( ) { } public double economicIndicator ( ) { } }

Fix:
boolean fail = ( this . risk ) < ( RandomHelper . nextDoubleFromTo ( 0 , 1 ) ) ;
Buggy code:
public class MSNNamespace extends Namespace { private static final long serialVersionUID = 7302784914405195380L ; private static final String SCHEME_IDENTIFIER = "msn" ; public ID createInstance ( Object [ ] parameters ) throws IDCreateException { } public String getScheme ( ) { } public Class [ ] [ ] getSupportedParameterTypes ( ) { <START_BUG> return new Class [ ] [ ] { new Class [ ] { String . class } , new Class [ ] { String . class , String . class } } ; <END_BUG> } }

Fix:
return new Class [ ] [ ] { new Class [ ] { String . class } } ;
Buggy code:
public class DeploymentRedeployHandler implements ModelQueryOperationHandler , DescriptionProvider , RuntimeOperationHandler { public static final String OPERATION_NAME = "redeploy" ; public static final DeploymentRedeployHandler INSTANCE = new DeploymentRedeployHandler ( ) ; private DeploymentRedeployHandler ( ) { } @ Override public ModelNode getModelDescription ( Locale locale ) { } @ Override public Cancellable execute ( NewOperationContext context , ModelNode operation , ResultHandler resultHandler ) { } private void redeploy ( ModelNode model , NewOperationContext context , ResultHandler resultHandler , ModelNode compensatingOp ) { if ( context instanceof NewRuntimeOperationContext ) { NewRuntimeOperationContext updateContext = ( ( NewRuntimeOperationContext ) ( context ) ) ; String deploymentUnitName = model . require ( NAME ) . asString ( ) ; <START_BUG> final ServiceName deploymentUnitServiceName = JBOSS_DEPLOYMENT . append ( deploymentUnitName ) ; <END_BUG> final ServiceRegistry serviceRegistry = updateContext . getServiceRegistry ( ) ; final ServiceController < ? > controller = serviceRegistry . getService ( deploymentUnitServiceName ) ; controller . setMode ( NEVER ) ; controller . setMode ( ACTIVE ) ; resultHandler . handleResultComplete ( compensatingOp ) ; } else { resultHandler . handleResultComplete ( compensatingOp ) ; } } }

Fix:
final ServiceName deploymentUnitServiceName = Services . deploymentUnitName ( deploymentUnitName ) ;
Buggy code:
public class ThreadMXBeanThreadInfoHandler implements OperationStepHandler , DescriptionProvider { public static final ThreadMXBeanThreadInfoHandler INSTANCE = new ThreadMXBeanThreadInfoHandler ( ) ; private final ParametersValidator validator = new ParametersValidator ( ) ; private ThreadMXBeanThreadInfoHandler ( ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } @ Override public ModelNode getModelDescription ( Locale locale ) { <START_BUG> return PlatformMBeanDescriptions . getGetThreadInfoDescripton ( locale ) ; <END_BUG> } }

Fix:
return PlatformMBeanDescriptions . getGetThreadInfoDescription ( locale ) ;
Buggy code:
public class AIRobotRecharge extends AIRobot { private DockingStation axeDocking = null ; public AIRobotRecharge ( EntityRobotBase iRobot ) { } @ Override public void start ( ) { } @ Override public void update ( ) { PipeTransportPower powerProvider = ( ( PipeTransportPower ) ( ( ( DockingStation ) ( robot . getDockingStation ( ) ) ) . getPipe ( ) . pipe . transport ) ) ; <START_BUG> int amount = robot . getBattery ( ) . receiveEnergy ( 1000 , false ) ; <END_BUG> powerProvider . requestEnergy ( robot . getDockingStation ( ) . side ( ) , amount ) ; robot . getBattery ( ) . receiveEnergy ( powerProvider . consumePower ( robot . getDockingStation ( ) . side ( ) , amount ) , false ) ; if ( ( robot . getEnergy ( ) ) >= ( EntityRobotBase . MAX_ENERGY ) ) { terminate ( ) ; } } @ Override public void delegateAIEnded ( AIRobot ai ) { } }

Fix:
int amount = robot . getBattery ( ) . receiveEnergy ( 1000 , true ) ;
Buggy code:
public class MyExprTest { static Logger log = Logger . getLogger ( MyExprTest . class ) ; private static final String OUTPUT_DIR = "src//main//resources//output//" ; private static final String DOMAIN_CONFIG_PATH = "src//main//resources//domain_config//" ; public static void main ( String [ ] args ) throws Exception { String inputFile = null ; if ( ( args . length ) > 0 ) inputFile = args [ 0 ] ; String query ; if ( inputFile != null ) { InputStream is = new FileInputStream ( inputFile ) ; query = is . toString ( ) ; } else { Scanner in = new Scanner ( System . in ) ; System . out . println ( "Enter<seq2seq4repair_space>your<seq2seq4repair_space>query:<seq2seq4repair_space>" ) ; query = in . nextLine ( ) ; } String domain = "sample_domain" ; <START_BUG> Integer totalData = 100 ; <END_BUG> MyExprTest . executeQuery ( query , domain , totalData ) ; } public static List < Path > executeQuery ( String query , String domain , Integer totalData ) throws Exception { } private static void renameFinalOutputFile ( List < Path > finalPathList , String fileName , String cFileName ) { } private static void deleteUnnecessaryFileFromOutputDirectory ( ) { } private static void deleteAllFilesFromOutputDirectory ( ) { } No newline ; at end ; of file ; }

Fix:
Integer totalData = 5000 ;
Buggy code:
public class MapView { private final String MENU = "\n" + ( ( ( ( ( ( ( ( ( ( "\n========================================" + "\n|<seq2seq4repair_space>Map<seq2seq4repair_space>Menu<seq2seq4repair_space>|" ) + "\n========================================" ) + "\nT<seq2seq4repair_space>-<seq2seq4repair_space>Temple" ) + "\nM<seq2seq4repair_space>-<seq2seq4repair_space>Mantle" ) + "\nA<seq2seq4repair_space>-<seq2seq4repair_space>Armor<seq2seq4repair_space>Shop" ) + "\nC<seq2seq4repair_space>-<seq2seq4repair_space>Current<seq2seq4repair_space>Level" ) + "\nH<seq2seq4repair_space>-<seq2seq4repair_space>Help<seq2seq4repair_space>Menu" ) + "\nG<seq2seq4repair_space>-<seq2seq4repair_space>Game<seq2seq4repair_space>Menu" ) + "\nQ<seq2seq4repair_space>-<seq2seq4repair_space>Return<seq2seq4repair_space>to<seq2seq4repair_space>Main<seq2seq4repair_space>Menu" ) + "\n========================================" ) ; public void displayMapMenu ( ) { char selection = '<seq2seq4repair_space>' ; do { System . out . println ( MENU ) ; String input = this . getMapInput ( ) ; selection = input . charAt ( 0 ) ; this . doActionMap ( selection ) ; <START_BUG> } while ( selection != 'E' ) ; <END_BUG> } public String getMapInput ( ) { } private void doActionMap ( char choice ) { } private void goToTempleMenu ( ) { } private void goToMantleMenu ( ) { } private void goToArmorShopMenu ( ) { } private void displayHelpMenu ( ) { } private void goToLevelMenu ( ) { } private void displayGameMenu ( ) { } private void returnToMainMenu ( ) { } }

Fix:
} while ( selection != 'Q' ) ;
Buggy code:
public class Version { private Version ( ) { } public static String id ( ) { <START_BUG> return "4.4-snapshot-20070712-1321" ; <END_BUG> } public static void main ( String [ ] args ) { } }

Fix:
return "4.4" ;
Buggy code:
public class BundleBuilder { protected final FastGarbledBooleanCircuit gbc ; public final KProbeResistantMatrix matrix ; protected final CryptoPrimitives primitives ; protected final Channel [ ] channels ; protected final SecureRandom random ; protected int keySize ; protected int [ ] inputLabelsP1 ; protected int [ ] inputLabelsP2 ; protected final int [ ] probeResistantLabels ; protected int [ ] outputLabels ; protected MultiKeyEncryptionScheme mesP2InputKeys ; protected SecureRandom randomSourceMasks ; protected SecureRandom randomSourceCommitments ; protected SecureRandom randomGarble ; protected byte [ ] inputWiresX ; protected byte [ ] inputWiresY ; protected byte [ ] inputWiresY1 ; protected byte [ ] inputWiresY1Extended ; protected byte [ ] inputWiresY2 ; protected SecretKey secret ; protected int [ ] inputLabelsX ; protected int [ ] inputLabelsY1Extended ; protected int [ ] inputLabelsY2 ; private CmtCCommitmentMsg commitment ; private CmtCDecommitmentMessage decommit ; public BundleBuilder ( FastGarbledBooleanCircuit gbc , KProbeResistantMatrix matrix , CryptoPrimitives primitives , Channel [ ] channels ) { } public Bundle build ( int seedSizeInBytes ) { } public Bundle build ( byte [ ] seed ) { } private void commitOutputs ( byte [ ] allOutputWireValues ) { } private byte [ ] generatePlacementMask ( ) { } private void initRandomness ( byte [ ] seed ) { } protected FastCircuitCreationValues garble ( ) { } protected void splitKeys ( ) { byte [ ] yDelta = null ; byte [ ] y0 = new byte [ keySize ] ; byte [ ] y1 = new byte [ keySize ] ; <START_BUG> for ( int i = 0 ; i < ( inputLabelsP2 . length ) ; i ++ ) { <END_BUG> System . arraycopy ( inputWiresY , ( ( i * 2 ) * ( keySize ) ) , y0 , 0 , keySize ) ; System . arraycopy ( inputWiresY , ( ( ( i * 2 ) + 1 ) * ( keySize ) ) , y1 , 0 , keySize ) ; if ( yDelta == null ) { try { yDelta = BinaryUtils . xorArrays ( y0 , y1 ) ; } catch ( InvalidInputException e1 ) { } } byte [ ] w0 = new byte [ keySize ] ; byte [ ] w1 = new byte [ keySize ] ; byte [ ] z0 = new byte [ keySize ] ; byte [ ] z1 = new byte [ keySize ] ; w0 = mesP2InputKeys . generateKey ( ) . getEncoded ( ) ; try { z0 = BinaryUtils . xorArrays ( y0 , w0 ) ; w1 = BinaryUtils . xorArrays ( w0 , yDelta ) ; z1 = BinaryUtils . xorArrays ( z0 , yDelta ) ; } catch ( InvalidInputException e ) { throw new IllegalStateException ( e ) ; } System . arraycopy ( w0 , 0 , inputWiresY1 , ( ( ( keySize ) * i ) * 2 ) , keySize ) ; System . arraycopy ( w1 , 0 , inputWiresY1 , ( ( keySize ) * ( ( i * 2 ) + 1 ) ) , keySize ) ; System . arraycopy ( z0 , 0 , inputWiresY2 , ( ( ( keySize ) * i ) * 2 ) , keySize ) ; System . arraycopy ( z1 , 0 , inputWiresY2 , ( ( keySize ) * ( ( i * 2 ) + 1 ) ) , keySize ) ; } } protected byte [ ] getRandomVector ( SecureRandom random , int size ) { } No newline ; at end ; of file ; }

Fix:
for ( int i = 0 ; i < ( inputLabelsY2 . length ) ; i ++ ) {
Buggy code:
public class SchoolMap { public static void computePaths ( Intersection source ) { } public static List < Intersection > getShortestPathTo ( Intersection target ) { } public static void parse ( List < Hallway > hallways , List < Intersection > intersections ) { } public static String getDirections ( List < Intersection > path , Hallway startHall , Hallway endHall , Room start , Room end ) { } private static boolean atEnd ( Hallway current , Intersection side , String direction ) { } private static Map < Integer , String > endings = new HashMap < Integer , String > ( ) ; public static String getEnding ( int i ) { <START_BUG> if ( i < 3 ) <END_BUG> return "th" ; else return SchoolMap . endings . get ( i ) ; } public static String navigate ( String input , String output , List < Hallway > hallways , List < Intersection > intersections ) { } }

Fix:
if ( i > 3 )
Buggy code:
public class ExampleRunner { public static void main ( String [ ] args ) throws Exception { } private static void usage ( Throwable t ) throws Exception { System . out . println ( ( "Caught<seq2seq4repair_space>" + ( t . toString ( ) ) ) ) ; System . out . println ( "Please<seq2seq4repair_space>make<seq2seq4repair_space>sure<seq2seq4repair_space>your<seq2seq4repair_space>domain.xml<seq2seq4repair_space>includes<seq2seq4repair_space>the<seq2seq4repair_space>H2DS<seq2seq4repair_space>datasource<seq2seq4repair_space>in<seq2seq4repair_space>its<seq2seq4repair_space><profile<seq2seq4repair_space>name=\"default\"><seq2seq4repair_space>element." ) ; System . out . println ( "An<seq2seq4repair_space>example<seq2seq4repair_space>configuration<seq2seq4repair_space>is<seq2seq4repair_space>as<seq2seq4repair_space>follows:\n" ) ; System . out . println ( "<subsystem<seq2seq4repair_space>xmlns=\"urn:jboss:domain:datasources:1.0\">" ) ; System . out . println ( "<seq2seq4repair_space><datasources>" ) ; <START_BUG> System . out . println ( "<seq2seq4repair_space><datasource<seq2seq4repair_space>jndi-name=\"java://H2DS\"<seq2seq4repair_space>enabled=\"true\"<seq2seq4repair_space>use-java-context=\"true\"<seq2seq4repair_space>pool-name=\"H2DS\">" ) ; <END_BUG> System . out . println ( "<seq2seq4repair_space><connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1<//connection-url>" ) ; System . out . println ( "<seq2seq4repair_space><driver-class>org.h2.Driver<//driver-class>" ) ; System . out . println ( "<seq2seq4repair_space><module>com.h2database.h2<//module>" ) ; System . out . println ( "<seq2seq4repair_space><pool><//pool>" ) ; System . out . println ( "<seq2seq4repair_space><security>" ) ; System . out . println ( "<seq2seq4repair_space><user-name>sa<//user-name>" ) ; System . out . println ( "<seq2seq4repair_space><password>sa<//password>" ) ; System . out . println ( "<seq2seq4repair_space><//security>" ) ; System . out . println ( "<seq2seq4repair_space><validation><//validation>" ) ; System . out . println ( "<seq2seq4repair_space><time-out><//time-out>" ) ; System . out . println ( "<seq2seq4repair_space><statement><//statement>" ) ; System . out . println ( "<seq2seq4repair_space><//datasource>" ) ; System . out . println ( "<seq2seq4repair_space><//datasources>" ) ; System . out . println ( "<//subsystem>" ) ; System . out . println ( "\nIf<seq2seq4repair_space>your<seq2seq4repair_space>profile<seq2seq4repair_space>already<seq2seq4repair_space>includes<seq2seq4repair_space>other<seq2seq4repair_space>datasource<seq2seq4repair_space>configurations,<seq2seq4repair_space>just<seq2seq4repair_space>add<seq2seq4repair_space>the<seq2seq4repair_space>nested<seq2seq4repair_space><datasource><seq2seq4repair_space>element<seq2seq4repair_space>above<seq2seq4repair_space>next<seq2seq4repair_space>to<seq2seq4repair_space>them." ) ; } }

Fix:
System . out . println ( "<seq2seq4repair_space><datasource<seq2seq4repair_space>jndi-name=\"java:jboss//datasources//ExampleDS\"<seq2seq4repair_space>enabled=\"true\"<seq2seq4repair_space>use-java-context=\"true\"<seq2seq4repair_space>pool-name=\"H2DS\">" ) ;
Buggy code:
public class CounterMutation implements IMutation { private static final Logger logger = LoggerFactory . getLogger ( CounterMutation . class ) ; private static final CounterMutationSerializer serializer = new CounterMutationSerializer ( ) ; private final RowMutation rowMutation ; private final ConsistencyLevel consistency ; public CounterMutation ( RowMutation rowMutation , ConsistencyLevel consistency ) { } public String getTable ( ) { } public ByteBuffer key ( ) { } public RowMutation rowMutation ( ) { } public ConsistencyLevel consistency ( ) { } public static CounterMutationSerializer serializer ( ) { } public RowMutation makeReplicationMutation ( ) throws IOException { List < ReadCommand > readCommands = new LinkedList < ReadCommand > ( ) ; for ( ColumnFamily columnFamily : rowMutation . getColumnFamilies ( ) ) { if ( ! ( columnFamily . metadata ( ) . getReplicateOnWrite ( ) ) ) continue ; if ( ! ( columnFamily . isSuper ( ) ) ) { QueryPath queryPath = new QueryPath ( columnFamily . metadata ( ) . cfName ) ; ReadCommand readCommand = new SliceByNamesReadCommand ( rowMutation . getTable ( ) , rowMutation . key ( ) , queryPath , columnFamily . getColumnNames ( ) ) ; readCommands . add ( readCommand ) ; continue ; } for ( IColumn superColumn : columnFamily . getSortedColumns ( ) ) { QueryPath queryPath = new QueryPath ( columnFamily . metadata ( ) . cfName , superColumn . name ( ) ) ; Collection < IColumn > subColumns = superColumn . getSubColumns ( ) ; Collection < ByteBuffer > subColNames = new HashSet < ByteBuffer > ( subColumns . size ( ) ) ; for ( IColumn subCol : subColumns ) { subColNames . add ( subCol . name ( ) ) ; } ReadCommand readCommand = new SliceByNamesReadCommand ( rowMutation . getTable ( ) , rowMutation . key ( ) , queryPath , subColNames ) ; readCommands . add ( readCommand ) ; } } List < InetAddress > foreignReplicas = instance . getLiveNaturalEndpoints ( rowMutation . getTable ( ) , rowMutation . key ( ) ) ; foreignReplicas . remove ( FBUtilities . getLocalAddress ( ) ) ; RowMutation replicationMutation = new RowMutation ( rowMutation . getTable ( ) , rowMutation . key ( ) ) ; for ( ReadCommand readCommand : readCommands ) { Table table = Table . open ( readCommand . table ) ; Row row = readCommand . getRow ( table ) ; <START_BUG> if ( null == row ) <END_BUG> continue ; AbstractType defaultValidator = row . cf . metadata ( ) . getDefaultValidator ( ) ; if ( defaultValidator . isCommutative ( ) ) { for ( InetAddress foreignNode : foreignReplicas ) { ( ( AbstractCommutativeType ) ( defaultValidator ) ) . cleanContext ( row . cf , foreignNode ) ; } } replicationMutation . add ( row . cf ) ; } return replicationMutation ; } public Message makeMutationMessage ( int version ) throws IOException { } public boolean shouldReplicateOnWrite ( ) { } public void apply ( ) throws IOException { } @ Override public String toString ( ) { } public String toString ( boolean shallow ) { } }

Fix:
if ( ( row == null ) || ( ( row . cf ) == null ) )
Buggy code:
public class HeaderSectionTest extends WicketTestCase { private static final Log log = LogFactory . getLog ( HeaderSectionTest . class ) ; public HeaderSectionTest ( String name ) { } public void testRenderHomePage_1 ( ) throws Exception { } public void testRenderHomePage_2 ( ) throws Exception { } public void testRenderHomePage_3 ( ) throws Exception { } public void testRenderHomePage_4 ( ) throws Exception { } public void testRenderHomePage_5 ( ) throws Exception { } public void testRenderHomePage_6 ( ) throws Exception { } public void testRenderHomePage_7 ( ) throws Exception { } public void testRenderHomePage_8 ( ) throws Exception { } public void testRenderHomePage_9 ( ) throws Exception { } public void testRenderHomePage_9a ( ) throws Exception { } public void testRenderHomePage_10 ( ) throws Exception { } public void testRenderHomePage_11 ( ) throws Exception { } public void testRenderHomePage_12 ( ) throws Exception { executeTest ( HeaderSectionPage_12 . class , "HeaderSectionPageExpectedResult_12.html" ) ; <START_BUG> PackageResource res = ( ( PackageResource ) ( application . getApplication ( ) . getSharedResources ( ) . get ( "wicket.markup.parser.filter.sub.HeaderSectionBorder//cborder.css" ) ) ) ; <END_BUG> assertNotNull ( res ) ; String absPath = res . getAbsolutePath ( ) ; assertNotNull ( absPath ) ; IResourceStream stream = res . getResourceStream ( ) ; assertNotNull ( stream ) ; } public void testRenderHomePage_13 ( ) throws Exception { } public void testRenderHomePage_14 ( ) throws Exception { } public void testRenderHomePage_15 ( ) throws Exception { } public void testRenderHomePage_16 ( ) throws Exception { } public void testRenderHomePage_17 ( ) throws Exception { } public void testRenderHomePage_18 ( ) throws Exception { } public void testRenderHomePage_19 ( ) throws Exception { } }

Fix:
PackageResource res = ( ( PackageResource ) ( tester . getApplication ( ) . getSharedResources ( ) . get ( "wicket.markup.parser.filter.sub.HeaderSectionBorder//cborder.css" ) ) ) ;
Buggy code:
public class CommentRecorderParser extends Parser { int [ ] commentStops = new int [ 10 ] ; int [ ] commentStarts = new int [ 10 ] ; int commentPtr = - 1 ; protected static final int CommentIncrement = 100 ; public CommentRecorderParser ( ProblemReporter problemReporter , boolean optimizeStringLiterals ) { } public void checkComment ( ) { } protected void consumeClassHeader ( ) { } protected void consumeEmptyTypeDeclaration ( ) { } protected void consumeInterfaceHeader ( ) { } protected CompilationUnitDeclaration endParse ( int act ) { } public int flushCommentsDefinedPriorTo ( int position ) { } public int [ ] [ ] getCommentsPositions ( ) { } public void initialize ( boolean initializeNLS ) { } public void initialize ( ) { } public void initializeScanner ( ) { <START_BUG> this . scanner = new Scanner ( false , false , ( ( this . options . getSeverity ( CompilerOptions . NonExternalizedString ) ) != ( ProblemSeverities . Ignore ) ) , this . options . sourceLevel , this . options . taskTags , this . options . taskPriorites , this . options . isTaskCaseSensitive ) ; <END_BUG> } private void pushOnCommentsStack ( int start , int end ) { } protected void resetModifiers ( ) { } }

Fix:
this . scanner = new Scanner ( false , false , ( ( this . options . getSeverity ( CompilerOptions . NonExternalizedString ) ) != ( ProblemSeverities . Ignore ) ) , this . options . sourceLevel , this . options . taskTags , this . options . taskPriorities , this . options . isTaskCaseSensitive ) ;