nus-yam/ex-repair huggingface dataset:
Buggy code:
public class MultipartFormInputStream { private static final Logger log = LoggerFactory . getLogger ( MultipartFormInputStream . class ) ; public static final byte CR = 13 ; public static final byte LF = 10 ; public static final byte DASH = 45 ; public static final int HEADER_PART_SIZE_MAX = 10240 ; protected static final int DEFAULT_BUFSIZE = 4096 ; protected static final byte [ ] HEADER_SEPARATOR = new byte [ ] { MultipartFormInputStream . CR , MultipartFormInputStream . LF , MultipartFormInputStream . CR , MultipartFormInputStream . LF } ; protected static final byte [ ] FIELD_SEPARATOR = new byte [ ] { MultipartFormInputStream . CR , MultipartFormInputStream . LF } ; protected static final byte [ ] STREAM_TERMINATOR = new byte [ ] { MultipartFormInputStream . DASH , MultipartFormInputStream . DASH } ; private InputStream input ; private int boundaryLength ; private int keepRegion ; private byte [ ] boundary ; private int bufSize ; private byte [ ] buffer ; private int head ; private int tail ; private String headerEncoding ; public MultipartFormInputStream ( ) { } public MultipartFormInputStream ( InputStream input , byte [ ] boundary , int bufSize ) { } public MultipartFormInputStream ( InputStream input , byte [ ] boundary ) { } public String getHeaderEncoding ( ) { } public void setHeaderEncoding ( String encoding ) { } public byte readByte ( ) throws IOException { } public boolean readBoundary ( ) throws MultipartFormInputStream . MalformedStreamException { } public void setBoundary ( byte [ ] boundary ) throws MultipartFormInputStream . IllegalBoundaryException { } public String readHeaders ( final int maxSize ) throws MultipartFormInputStream . MalformedStreamException { } public int readBodyData ( OutputStream output ) throws IOException , MultipartFormInputStream . MalformedStreamException { } public int discardBodyData ( ) throws IOException , MultipartFormInputStream . MalformedStreamException { } public boolean skipPreamble ( ) throws IOException { } public static boolean arrayequals ( byte [ ] a , byte [ ] b , int count ) { } protected int findByte ( byte value , int pos ) { } protected int findSeparator ( ) { } @ Override public String toString ( ) { <START_BUG> StringBuffer sbTemp = new StringBuffer ( ) ; <END_BUG> sbTemp . append ( "boundary='" ) ; for ( byte b : boundary ) { if ( Character . isDefined ( b ) ) { sbTemp . append ( ( ( char ) ( b ) ) ) ; } else { sbTemp . append ( "#" ) ; sbTemp . append ( b ) ; sbTemp . append ( ";" ) ; } } sbTemp . append ( "';<seq2seq4repair_space>bufSize=" ) ; sbTemp . append ( bufSize ) ; return sbTemp . toString ( ) ; } public class MalformedStreamException extends IOException { private static final long serialVersionUID = 1L ; public MalformedStreamException ( ) { } public MalformedStreamException ( String message ) { } } public class IllegalBoundaryException extends IOException { private static final long serialVersionUID = 1L ; public IllegalBoundaryException ( ) { } public IllegalBoundaryException ( String message ) { } } }

Fix:
StringBuilder sbTemp = new StringBuilder ( ) ;
Buggy code:
public class Player { protected static int numHuman = 0 ; protected static int numCPUs = 0 ; protected static int numPlayers = 0 ; private static ArrayList < String > suits ; protected boolean human ; protected ArrayList < Card > hand ; protected ArrayList < Card > facedown ; protected ArrayList < Card > faceup ; protected String name ; protected ConsoleIO cio = new ConsoleIO ( "That's<seq2seq4repair_space>not<seq2seq4repair_space>right" , 10 , 100 , 10 ) ; public Player ( ) { } public Player ( boolean isHuman , String n , Deck d ) { } public int move ( Pile currP , Deck d ) { } public int firstMove ( Pile currP , Deck d ) { } public boolean canMove ( Pile p ) { <START_BUG> if ( ( p . isEmpty ( ) ) || ( ( hand . isEmpty ) && ( faceup . isEmpty ( ) ) ) ) { <END_BUG> return true ; } else { if ( ! ( hand . isEmpty ( ) ) ) { for ( Card c : hand ) { if ( p . validMove ( c ) ) { return true ; } cio . typeln ( ( ( c . value ) + "<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>valid" ) ) ; } } else if ( ! ( faceup . isEmpty ( ) ) ) { for ( Card c : faceup ) { if ( p . validMove ( c ) ) { return true ; } } } else { } } return false ; } public void sort ( ArrayList < Card > cards ) { } public int handsize ( ) { } public int numDown ( ) { } public String toString ( ) { } public static void main ( String [ ] args ) { } No newline ; at end ; of file ; }

Fix:
if ( ( p . isEmpty ( ) ) || ( ( hand . isEmpty ( ) ) && ( faceup . isEmpty ( ) ) ) ) {
Buggy code:
public class PackageResource extends WebResource { private static Map resourceMap = new HashMap ( ) ; final String absolutePath ; final Locale locale ; final String style ; private transient Application application ; public static PackageResource get ( final Package basePackage , final String path ) { } public static PackageResource get ( final Package basePackage , final String path , final Locale locale , final String style ) { } private PackageResource ( final Package basePackage , final String path , final Locale locale , final String style ) { } public IResourceStream getResourceStream ( ) { if ( ( resourceStream ) == null ) { this . resourceStream = application . getResourceStreamLocator ( ) . locate ( absolutePath , style , locale , null ) ; if ( ( this . resourceStream ) == null ) { <START_BUG> throw new WicketRuntimeException ( ( ( ( ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>static<seq2seq4repair_space>resource<seq2seq4repair_space>[path<seq2seq4repair_space>=<seq2seq4repair_space>" + ( absolutePath ) ) + ",<seq2seq4repair_space>style<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( style ) ) + ",<seq2seq4repair_space>locale<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( locale ) ) + "]" ) ) ; <END_BUG> } } return resourceStream ; } public void setApplication ( WebApplication webApplication ) { } }

Fix:
throw new WicketRuntimeException ( ( ( ( ( ( ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>package<seq2seq4repair_space>resource<seq2seq4repair_space>[path<seq2seq4repair_space>=<seq2seq4repair_space>" + ( absolutePath ) ) + ",<seq2seq4repair_space>style<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( style ) ) + ",<seq2seq4repair_space>locale<seq2seq4repair_space>=<seq2seq4repair_space>" ) + ( locale ) ) + "]" ) ) ;
Buggy code:
public abstract class AjaxTimerBehavior extends AjaxBehavior { private long millis ; public AjaxTimerBehavior ( long millis ) { } protected void onRenderHeadInitContribution ( Response response ) { } protected final String getJsTimeoutCall ( final long millis ) { <START_BUG> return ( ( ( "setTimeout(function()<seq2seq4repair_space>{<seq2seq4repair_space>" + ( buildAjaxCall ( ) ) ) + "<seq2seq4repair_space>},<seq2seq4repair_space>" ) + millis ) + ");" ; <END_BUG> } protected void respond ( final AjaxRequestTarget target ) { } protected abstract void onTimer ( final AjaxRequestTarget target ) { } }

Fix:
return ( ( ( "setTimeout(function()<seq2seq4repair_space>{<seq2seq4repair_space>wicketAjaxGet('" + ( getCallbackUrl ( ) ) ) + "');<seq2seq4repair_space>},<seq2seq4repair_space>" ) + millis ) + ");" ;
Buggy code:
public class MaxTimestamp extends JobConfig implements Tool { private static class MyMapper extends Mapper < LongWritable , Text , LongWritable , LongWritable > { private final LongWritable ONE = new LongWritable ( 1 ) ; private static final LongWritable VAL_OUT = new LongWritable ( 1 ) ; private JsonParser parser ; @ Override protected void setup ( Context context ) throws IOException , InterruptedException { } @ Override protected void cleanup ( Context context ) throws IOException , InterruptedException { } @ Override protected void map ( LongWritable key , Text value , Context context ) throws IOException , InterruptedException { } } private static class MyCombiner extends Reducer < LongWritable , LongWritable , LongWritable , LongWritable > { private final LongWritable VAL_OUT = new LongWritable ( 0L ) ; @ Override protected void reduce ( LongWritable key , Iterable < LongWritable > values , Context context ) throws IOException , InterruptedException { } } private static class MyReducer extends Reducer < LongWritable , LongWritable , NullWritable , NullWritable > { private final LongWritable VAL_OUT = new LongWritable ( 0L ) ; @ Override protected void reduce ( LongWritable key , Iterable < LongWritable > values , Context context ) throws IOException , InterruptedException { } } @ Override public int run ( String [ ] args ) throws Exception { <START_BUG> Job job = setup ( org . apache . hadoop . mapreduce . lib . input . TextInputFormat . class , org . apache . hadoop . mapreduce . lib . output . NullOutputFormat . class , Text . class , LongWritable . class , NullWritable . class , NullWritable . class , MaxTimestamp . MyMapper . class , MaxTimestamp . MyReducer . class , MaxTimestamp . MyCombiner . class , args ) ; <END_BUG> job . waitForCompletion ( true ) ; return 0 ; } public static void main ( String [ ] args ) { } }

Fix:
Job job = setup ( org . apache . hadoop . mapreduce . lib . input . TextInputFormat . class , org . apache . hadoop . mapreduce . lib . output . NullOutputFormat . class , LongWritable . class , LongWritable . class , NullWritable . class , NullWritable . class , MaxTimestamp . MyMapper . class , MaxTimestamp . MyReducer . class , MaxTimestamp . MyCombiner . class , args ) ;
Buggy code:
public class PitchServer { public static void main ( String [ ] args ) throws Exception { ServerSocket listener = new ServerSocket ( 8901 ) ; System . out . println ( "Pitch<seq2seq4repair_space>Server<seq2seq4repair_space>is<seq2seq4repair_space>Running" ) ; PitchModel model = new PitchModel ( ) ; try { <START_BUG> for ( int i = 0 ; i < 2 ; i ++ ) { <END_BUG> System . out . println ( ( "Call<seq2seq4repair_space>for<seq2seq4repair_space>Plr:" + i ) ) ; model . addPlayer ( listener . accept ( ) , i ) ; model . players . get ( i ) . start ( ) ; } } finally { while ( ( model . players . size ( ) ) > 0 ) { Thread . sleep ( 1000 ) ; } listener . close ( ) ; System . exit ( 0 ) ; } } }

Fix:
for ( int i = 0 ; i < 4 ; i ++ ) {
Buggy code:
public class FileImportTracker { private static final String ERROR_MESSAGE = "Failed<seq2seq4repair_space>to<seq2seq4repair_space>import<seq2seq4repair_space>some<seq2seq4repair_space>data.<seq2seq4repair_space>See<seq2seq4repair_space>the<seq2seq4repair_space>import<seq2seq4repair_space>counters<seq2seq4repair_space>and<seq2seq4repair_space>errors." ; public static final String ERRORS_CONNECTION_NAME = "errors" ; private final AtomicLong entitiesWritten = new AtomicLong ( 0 ) ; private final AtomicLong entitiesFailed = new AtomicLong ( 0 ) ; private final AtomicLong connectionsWritten = new AtomicLong ( 0 ) ; private final AtomicLong connectionsFailed = new AtomicLong ( 0 ) ; private final AtomicInteger cachedOperations = new AtomicInteger ( 0 ) ; private final Semaphore writeSemaphore = new Semaphore ( 1 ) ; private final FileImport fileImport ; private final EntityManagerFactory emf ; private final int flushCount ; public FileImportTracker ( final EntityManagerFactory emf , final FileImport fileImport , final int flushCount ) { } public void entityWritten ( ) { } public void entityFailed ( final String message ) { } public void connectionWritten ( ) { } public void connectionFailed ( final String message ) { } public void complete ( ) { final long failed = ( entitiesFailed . get ( ) ) + ( connectionsFailed . get ( ) ) ; final FileImport . State state ; final String message ; if ( failed > 0 ) { state = State . FAILED ; <START_BUG> message = FileImportTracker . ERROR_MESSAGE ; <END_BUG> } else { state = State . FINISHED ; message = null ; } updateFileImport ( state , message ) ; } public void fatal ( final String message ) { } public long getTotalEntityCount ( ) { } public long getTotalConnectionCount ( ) { } public boolean shouldStopProcessingEntities ( ) { } public boolean shouldStopProcessingConnections ( ) { } public long getEntitiesWritten ( ) { } public long getEntitiesFailed ( ) { } public long getConnectionsWritten ( ) { } public long getConnectionsFailed ( ) { } private void maybeFlush ( ) { } private void updateFileImport ( final FileImport . State state , final String message ) { } }

Fix:
message = ( ( fileImport . getErrorMessage ( ) ) == null ) ? FileImportTracker . ERROR_MESSAGE : fileImport . getErrorMessage ( ) ;
Buggy code:
public class Instruction { private static final AngleCalc ac = new AngleCalc ( ) ; private static final DistanceCalc3D distanceCalc = new DistanceCalc3D ( ) ; public static final int TURN_SHARP_LEFT = - 3 ; public static final int TURN_LEFT = - 2 ; public static final int TURN_SLIGHT_LEFT = - 1 ; public static final int CONTINUE_ON_STREET = 0 ; public static final int TURN_SLIGHT_RIGHT = 1 ; public static final int TURN_RIGHT = 2 ; public static final int TURN_SHARP_RIGHT = 3 ; public static final int FINISH = 4 ; public static final int REACHED_VIA = 5 ; protected int sign ; private final String name ; private double distance ; private long time ; final PointList points ; private final InstructionAnnotation annotation ; public Instruction ( int sign , String name , InstructionAnnotation ia , PointList pl ) { } public InstructionAnnotation getAnnotation ( ) { } public int getSign ( ) { } public String getName ( ) { } public Instruction setDistance ( double distance ) { } public double getDistance ( ) { } public Instruction setTime ( long time ) { } public long getTime ( ) { } double getFirstLat ( ) { } double getFirstLon ( ) { } double getFirstEle ( ) { } public PointList getPoints ( ) { } long fillGPXList ( List < GPXEntry > list , long time , Instruction prevInstr , Instruction nextInstr , boolean firstInstr ) { checkOne ( ) ; int len = points . size ( ) ; long prevTime = time ; double lat = points . getLatitude ( 0 ) ; double lon = points . getLongitude ( 0 ) ; double ele = Double . NaN ; boolean is3D = points . is3D ( ) ; if ( is3D ) <START_BUG> ele = points . getLongitude ( 0 ) ; <END_BUG> for ( int i = 0 ; i < len ; i ++ ) { boolean last = ( i + 1 ) == len ; double nextLat = ( last ) ? nextInstr . getFirstLat ( ) : points . getLatitude ( ( i + 1 ) ) ; double nextLon = ( last ) ? nextInstr . getFirstLon ( ) : points . getLongitude ( ( i + 1 ) ) ; double nextEle = ( is3D ) ? last ? nextInstr . getFirstEle ( ) : points . getElevation ( ( i + 1 ) ) : Double . NaN ; list . add ( new GPXEntry ( lat , lon , ele , prevTime ) ) ; if ( is3D ) prevTime = Math . round ( ( prevTime + ( ( ( this . time ) * ( Instruction . distanceCalc . calcDist ( nextLat , nextLon , nextEle , lat , lon , ele ) ) ) // ( distance ) ) ) ) ; else prevTime = Math . round ( ( prevTime + ( ( ( this . time ) * ( Instruction . distanceCalc . calcDist ( nextLat , nextLon , lat , lon ) ) ) // ( distance ) ) ) ) ; lat = nextLat ; lon = nextLon ; ele = nextEle ; } return time + ( this . time ) ; } @ Override public String toString ( ) { } String getDirection ( Instruction nextI ) { } String getAzimuth ( Instruction nextI ) { } private double calcAzimuth ( Instruction nextI ) { } void checkOne ( ) { } String getTurnDescription ( Translation tr ) { } }

Fix:
ele = points . getElevation ( 0 ) ;
Buggy code:
public class FileStreamTask extends WrappedRunnable { private static Logger logger = LoggerFactory . getLogger ( FileStreamTask . class ) ; public static final int CHUNK_SIZE = 64 * 1024 ; public static final int MAX_CONNECT_ATTEMPTS = 8 ; protected final StreamHeader header ; protected final InetAddress to ; private Socket socket ; private OutputStream output ; private final byte [ ] transferBuffer = new byte [ FileStreamTask . CHUNK_SIZE ] ; private final Throttle throttle ; public FileStreamTask ( StreamHeader header , InetAddress to ) { } public void runMayThrow ( ) throws IOException { } private void stream ( ) throws IOException { ByteBuffer HeaderBuffer = MessagingService . instance ( ) . constructStreamHeader ( header , false , instance . getVersion ( to ) ) ; output . write ( ByteBufferUtil . getArray ( HeaderBuffer ) ) ; if ( ( header . file ) == null ) return ; <START_BUG> RandomAccessReader file = ( header . file . sstable . compression ) ? CompressedRandomAccessReader . open ( header . file . getFilename ( ) , true ) : RandomAccessReader . open ( new File ( header . file . getFilename ( ) ) , true ) ; <END_BUG> output = new LZFOutputStream ( output ) ; try { for ( Pair < Long , Long > section : header . file . sections ) { file . seek ( section . left ) ; long length = ( section . right ) - ( section . left ) ; long bytesTransferred = 0 ; while ( bytesTransferred < length ) { long lastWrite = write ( file , length , bytesTransferred ) ; bytesTransferred += lastWrite ; header . file . progress += lastWrite ; } output . flush ( ) ; if ( FileStreamTask . logger . isDebugEnabled ( ) ) FileStreamTask . logger . debug ( ( ( ( "Bytes<seq2seq4repair_space>transferred<seq2seq4repair_space>" + bytesTransferred ) + "//" ) + ( header . file . size ) ) ) ; } } finally { FileUtils . closeQuietly ( file ) ; } } protected long write ( RandomAccessReader reader , long length , long bytesTransferred ) throws IOException { } private void connectAttempt ( ) throws IOException { } protected void close ( ) throws IOException { } public String toString ( ) { } }

Fix:
RandomAccessReader file = ( header . file . sstable . compression ) ? CompressedRandomAccessReader . open ( header . file . getFilename ( ) , header . file . sstable . getCompressionMetadata ( ) , true ) : RandomAccessReader . open ( new File ( header . file . getFilename ( ) ) , true ) ;
Buggy code:
public final class PerspectiveLabelProvider extends LabelProvider implements ITableLabelProvider { private HashMap imageCache = new HashMap ( 5 ) ; private boolean markDefault ; public PerspectiveLabelProvider ( ) { } public PerspectiveLabelProvider ( boolean markDefault ) { } public final Image getImage ( Object element ) { if ( element instanceof IPerspectiveDescriptor ) { IPerspectiveDescriptor desc = ( ( IPerspectiveDescriptor ) ( element ) ) ; ImageDescriptor imageDescriptor = desc . getImageDescriptor ( ) ; if ( imageDescriptor == null ) { <START_BUG> imageDescriptor = WorkbenchImages . getImageDescriptor ( IMG_CTOOL_DEF_PERSPECTIVE_HOVER ) ; <END_BUG> } Image image = ( ( Image ) ( imageCache . get ( imageDescriptor ) ) ) ; if ( image == null ) { image = imageDescriptor . createImage ( ) ; imageCache . put ( imageDescriptor , image ) ; } return image ; } return null ; } public final void dispose ( ) { } public final String getText ( Object element ) { } public final Image getColumnImage ( Object element , int columnIndex ) { } public final String getColumnText ( Object element , int columnIndex ) { } }

Fix:
imageDescriptor = WorkbenchImages . getImageDescriptor ( IMG_ETOOL_DEF_PERSPECTIVE_HOVER ) ;
Buggy code:
public class ReaderPCMJSON { public boolean containsAllProducts ( PCM pcm1 , PCM pcm2 ) { } public boolean containsAllContents ( PCM pcm1 , PCM pcm2 ) { } public boolean containsContent ( String value , PCM pcm ) { } public boolean containsProduct ( String value , PCM pcm ) { } public boolean containsName ( String value , PCM pcm ) { } public boolean sameRandomProduct ( PCM pcm1 , PCM pcm2 ) { } public boolean sameRandomCell ( PCM pcm1 , PCM pcm2 ) { List < Product > products1 = pcm1 . getProducts ( ) ; List < Product > products2 = pcm2 . getProducts ( ) ; if ( ( pcm1 . getProducts ( ) . size ( ) ) == ( pcm2 . getProducts ( ) . size ( ) ) ) { int i = ReaderPCMJSON . randomRange ( 0 , ( ( products1 . size ( ) ) - 1 ) ) ; List < Cell > cells1 = products1 . get ( i ) . getCells ( ) ; List < Cell > cells2 = products1 . get ( i ) . getCells ( ) ; int j = ReaderPCMJSON . randomRange ( 0 , ( ( cells1 . size ( ) ) - 1 ) ) ; <START_BUG> return ( cells1 . get ( i ) . getContent ( ) ) == ( cells2 . get ( i ) . getContent ( ) ) ; <END_BUG> } else { return false ; } } public static int randomRange ( int min , int max ) { } }

Fix:
return ( cells1 . get ( j ) . getContent ( ) ) == ( cells2 . get ( j ) . getContent ( ) ) ;
Buggy code:
public class SharedObjectContainerUI { public static final String JOIN_TIME_FORMAT = "hh:mm:ss<seq2seq4repair_space>a<seq2seq4repair_space>z" ; public static final String FILE_DIRECTORY = "received_files" ; public static final String ECFDIRECTORY = ( "ECF_" + ( SharedObjectContainerUI . FILE_DIRECTORY ) ) + "//" ; public static final String COLLAB_SHARED_OBJECT_ID = "chat" ; ISharedObjectContainer soc = null ; CollabClient collabclient = null ; public SharedObjectContainerUI ( CollabClient client , ISharedObjectContainer soc ) { } protected String getSharedFileDirectoryForProject ( IResource proj ) { } protected User getUserData ( String containerType , ID clientID , String usernick , IResource project ) { } void addObjectToClient ( ISharedObjectContainer soContainer , ClientEntry client , String username , IResource proj ) throws Exception { } public void setup ( final ISharedObjectContainer soContainer , final ClientEntry newClientEntry , final IResource resource , String username ) throws Exception { addObjectToClient ( soContainer , newClientEntry , username , resource ) ; soc . addListener ( new IContainerListener ( ) { public void handleEvent ( IContainerEvent evt ) { if ( evt instanceof IContainerDisconnectedEvent ) { IContainerDisconnectedEvent cd = ( ( IContainerDisconnectedEvent ) ( evt ) ) ; final ID departedContainerID = cd . getTargetID ( ) ; ID connectedID = newClientEntry . getConnectedID ( ) ; if ( ( connectedID == null ) || ( connectedID . equals ( departedContainerID ) ) ) { if ( ! ( newClientEntry . isDisposed ( ) ) ) { collabclient . disposeClient ( resource , newClientEntry ) ; } } } else if ( evt instanceof IContainerEjectedEvent ) { IContainerEjectedEvent ce = ( ( IContainerEjectedEvent ) ( evt ) ) ; final ID departedContainerID = ce . getTargetID ( ) ; ID connectedID = newClientEntry . getConnectedID ( ) ; if ( ( connectedID == null ) || ( connectedID . equals ( departedContainerID ) ) ) { if ( ! ( newClientEntry . isDisposed ( ) ) ) { collabclient . disposeClient ( resource , newClientEntry ) ; } } } } <START_BUG> } , "" ) ; <END_BUG> } protected void createAndAddSharedObject ( final ISharedObjectContainer soContainer , final ClientEntry client , final IResource proj , User user , String fileDir ) throws Exception { } }

Fix:
} ) ;
Buggy code:
public abstract class AbstractMetadataFactory { protected static final String LIST_SEPARATOR = "<seq2seq4repair_space>" ; protected void encodeString ( IServiceProperties props , String name , String value ) { } protected String decodeString ( IServiceProperties props , String name ) { } protected void encodeLong ( IServiceProperties result , String name , Long value ) { } protected Long decodeLong ( IServiceProperties props , String name ) { } protected void encodeList ( IServiceProperties props , String name , List < String > list ) { } protected List < String > decodeList ( IServiceProperties props , String name ) { } protected void encodeIDArray ( IServiceProperties result , ID [ ] idFilter ) { for ( int i = 0 ; i < ( idFilter . length ) ; i ++ ) { <START_BUG> encodeString ( result , ( ( RemoteConstants . ENDPOINT_IDFILTER_IDARRAY_NAME_ ) + i ) , idFilter [ i ] . toExternalForm ( ) ) ; <END_BUG> result . setPropertyString ( ( ( RemoteConstants . ENDPOINT_IDFILTER_IDARRAY_NAMESPACE_ ) + i ) , idFilter [ i ] . getNamespace ( ) . getName ( ) ) ; } result . setPropertyString ( ENDPOINT_IDFILTER_IDARRAY_COUNT , new Integer ( idFilter . length ) . toString ( ) ) ; } protected ID [ ] decodeIDArray ( IServiceProperties props ) { } protected void decodeOSGiProperties ( IServiceProperties props , Map osgiProperties ) { } protected EndpointDescription decodeEndpointDescription ( IServiceProperties discoveredServiceProperties ) { } protected void encodeServiceProperties ( EndpointDescription endpointDescription , IServiceProperties result ) { } protected void encodeNonStandardServiceProperties ( Map < String , Object > properties , IServiceProperties result ) { } protected void decodeNonStandardServiceProperties ( IServiceProperties props , Map < String , Object > result ) { } protected void logWarning ( String methodName , String message , Throwable t ) { } protected void logError ( String methodName , String message , Throwable t ) { } public void close ( ) { } }

Fix:
encodeString ( result , ( ( RemoteConstants . ENDPOINT_IDFILTER_IDARRAY_NAME_ ) + i ) , idFilter [ i ] . getName ( ) ) ;
Buggy code:
public class Case extends Statement { public Expression constantExpression ; public CaseLabel targetLabel ; public Case ( int sourceStart , Expression constantExpression ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public void resolve ( BlockScope scope ) { } public Constant resolveCase ( BlockScope scope , TypeBinding testTb , SwitchStatement switchStatement ) { switchStatement . cases [ ( ( switchStatement . caseCount ) ++ ) ] = this ; TypeBinding caseTb = constantExpression . resolveType ( scope ) ; if ( ( caseTb == null ) || ( testTb == null ) ) return null ; if ( constantExpression . isConstantValueOfTypeAssignableToType ( caseTb , testTb ) ) return constantExpression . constant ; <START_BUG> if ( scope . areTypesCompatible ( caseTb , testTb ) ) <END_BUG> return constantExpression . constant ; scope . problemReporter ( ) . typeMismatchErrorActualTypeExpectedType ( constantExpression , caseTb , testTb ) ; return null ; } public String toString ( int tab ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( org . eclipse . jdt . internal . compiler . lookup . Scope . areTypesCompatible ( caseTb , testTb ) )
Buggy code:
public class ToolFactory { public static ICodeFormatter createCodeFormatter ( ) { } public static ICodeFormatter createDefaultCodeFormatter ( Map options ) { final String NEW_CODE_FORMATTER_ACTIVATION = ( JavaCore . PLUGIN_ID ) + ".newformatter.activation" ; Object newFormatterActivation = JavaCore . getOption ( NEW_CODE_FORMATTER_ACTIVATION ) ; ICodeFormatter codeFormatter ; if ( JavaCore . ENABLED . equals ( newFormatterActivation ) ) { <START_BUG> codeFormatter = new DefaultCodeFormatter ( ) ; <END_BUG> } else { if ( options == null ) options = JavaCore . getOptions ( ) ; codeFormatter = new CodeFormatter ( options ) ; } return codeFormatter ; } public static IClassFileDisassembler createDefaultClassFileDisassembler ( ) { } public static ClassFileBytesDisassembler createDefaultClassFileBytesDisassembler ( ) { } public static IClassFileReader createDefaultClassFileReader ( String fileName , int decodingFlag ) { } public static IClassFileReader createDefaultClassFileReader ( IClassFile classfile , int decodingFlag ) { } public static IClassFileReader createDefaultClassFileReader ( String zipFileName , String zipEntryName , int decodingFlag ) { } public static IScanner createScanner ( boolean tokenizeComments , boolean tokenizeWhiteSpace , boolean assertMode , boolean recordLineSeparator ) { } public static IScanner createScanner ( boolean tokenizeComments , boolean tokenizeWhiteSpace , boolean recordLineSeparator , String sourceLevel ) { } }

Fix:
codeFormatter = new DefaultCodeFormatter ( options ) ;
Buggy code:
public abstract class CachedFolder extends LocalFolder { protected AbstractHeaderCache headerCache ; public CachedFolder ( FolderItem item ) { } public Object addMessage ( AbstractMessage message , WorkerStatusController worker ) throws Exception { getHeaderList ( worker ) ; Object newUid = super . addMessage ( message , worker ) ; ColumbaHeader h = ( ( ColumbaHeader ) ( ( ( ColumbaHeader ) ( message . getHeader ( ) ) ) . clone ( ) ) ) ; EncodedWordDecoder decoder = new EncodedWordDecoder ( ) ; TableItem v = MailConfig . getMainFrameOptionsConfig ( ) . getTableItem ( ) ; String column ; for ( int j = 0 ; j < ( v . count ( ) ) ; j ++ ) { HeaderItem headerItem = v . getHeaderItem ( j ) ; column = ( ( String ) ( headerItem . get ( "name" ) ) ) ; Object item = h . get ( column ) ; if ( item instanceof String ) { String str = ( ( String ) ( item ) ) ; h . set ( column , decoder . decode ( str ) ) ; } } <START_BUG> ColumbaHeader strippedHeader = ColumbaHeader . stripHeaders ( h ) ; <END_BUG> h = null ; strippedHeader . set ( "columba.uid" , newUid ) ; if ( strippedHeader . get ( "columba.flags.recent" ) . equals ( Boolean . TRUE ) ) getMessageFolderInfo ( ) . incRecent ( ) ; if ( strippedHeader . get ( "columba.flags.seen" ) . equals ( Boolean . FALSE ) ) getMessageFolderInfo ( ) . incUnseen ( ) ; getHeaderCacheInstance ( ) . add ( strippedHeader ) ; return newUid ; } public boolean exists ( Object uid , WorkerStatusController worker ) throws Exception { } public void expungeFolder ( WorkerStatusController worker ) throws Exception { } protected HeaderList getCachedHeaderList ( WorkerStatusController worker ) throws Exception { } public HeaderList getHeaderList ( WorkerStatusController worker ) throws Exception { } public AbstractMessage getMessage ( Object uid , WorkerStatusController worker ) throws Exception { } public ColumbaHeader getMessageHeader ( Object uid , WorkerStatusController worker ) throws Exception { } public Object [ ] getUids ( WorkerStatusController worker ) throws Exception { } public void innerCopy ( Folder destFolder , Object [ ] uids , WorkerStatusController worker ) throws Exception { } protected void markMessage ( Object uid , int variant , WorkerStatusController worker ) throws Exception { } public void markMessage ( Object [ ] uids , int variant , WorkerStatusController worker ) throws Exception { } public void removeMessage ( Object uid , WorkerStatusController worker ) throws Exception { } public void save ( WorkerStatusController worker ) throws Exception { } public AbstractHeaderCache getHeaderCacheInstance ( ) { } }

Fix:
ColumbaHeader strippedHeader = CachedHeaderfieldOwner . stripHeaders ( h ) ;
Buggy code:
public class HomeViewAdapter extends RecyclerView . Adapter < HomeViewAdapter . ContactViewHolder > { private List < CableInfo > cableList ; Context ctx ; public HomeViewAdapter ( List < CableInfo > cableList ) { } @ Override public int getItemCount ( ) { } @ Override public HomeViewAdapter . ContactViewHolder onCreateViewHolder ( ViewGroup viewGroup , int i ) { } @ Override public void onBindViewHolder ( HomeViewAdapter . ContactViewHolder contactViewHolder , int i ) { CableInfo ci = cableList . get ( i ) ; final int position = i ; contactViewHolder . itemView . setOnTouchListener ( new View . OnTouchListener ( ) { @ Override public boolean onTouch ( View v , MotionEvent event ) { Log . v ( "TOUCH:<seq2seq4repair_space>" , ( "" + position ) ) ; return false ; } } ) ; contactViewHolder . vName . setText ( ci . title ) ; contactViewHolder . vSurname . setText ( ci . type ) ; <START_BUG> contactViewHolder . vTitle . setText ( ci . price ) ; <END_BUG> } public void onClick ( View v ) { } public static class ContactViewHolder extends RecyclerView . ViewHolder implements View . OnCreateContextMenuListener { protected TextView vName ; protected TextView vSurname ; protected TextView vEmail ; protected TextView vTitle ; public ContactViewHolder ( View v ) { } @ Override public void onCreateContextMenu ( ContextMenu menu , View v , ContextMenu . ContextMenuInfo menuInfo ) { } } No newline ; at end ; of file ; }

Fix:
contactViewHolder . vTitle . setText ( ( "£" + ( ci . price ) ) ) ;
Buggy code:
public class FocusWidget extends Actor { private static final float TRANSITION_TIME = 1.0F ; private static class FocusData { public ValueProvider value ; public boolean visible ; public FocusData ( ) { } } private PlayerManager playerManager ; private PerspectiveCamera camera ; private NinePatch focusPatch ; private NinePatch barPatch ; private Sprite focusTarget ; private Vector3 vecTemp3D = new Vector3 ( ) ; private Vector2 vecTemp2D = new Vector2 ( ) ; private Rectangle rect = new Rectangle ( ) ; private Map < Player , FocusWidget . FocusData > animationData = new HashMap < Player , FocusWidget . FocusData > ( ) ; private Label playerName ; private TweenManager tweenManager ; public FocusWidget ( PerspectiveCamera camera , PlayerManager playerManager , TweenManager tweenManager ) { } @ Override public void draw ( Batch batch , float parentAlpha ) { } private void drawFocus ( Player player , Batch batch , float parentAlpha ) { } private void drawPlayerInformation ( Player player , Batch batch , FocusWidget . FocusData focusData , float size , Vector2 cameraPos2D ) { float parentAlpha ; if ( ! ( focusData . visible ) ) { focusData . visible = true ; tweenManager . killTarget ( focusData . value ) ; Tween . to ( focusData . value , VALUE , FocusWidget . TRANSITION_TIME ) . target ( 1.0F ) . ease ( easeOutCubic ) . start ( tweenManager ) ; } parentAlpha = focusData . value . getValue ( ) ; final float posX = ( cameraPos2D . x ) - ( size // 2.0F ) ; final float posY = ( cameraPos2D . y ) - ( size // 2.0F ) ; final float NAME_PADDING = ( size * size ) // 360.0F ; final float BAR_PADDING = 10.0F ; final float FONT_SCALE = size // 75.0F ; focusPatch . setColor ( UI . cpy ( ) ) ; focusPatch . getColor ( ) . a = parentAlpha ; focusPatch . draw ( batch , posX , posY , size , size ) ; <START_BUG> barPatch . setColor ( ACTIVE . cpy ( ) ) ; <END_BUG> barPatch . getColor ( ) . a = parentAlpha * 0.1F ; barPatch . draw ( batch , ( posX + BAR_PADDING ) , ( ( ( posY + size ) + ( NAME_PADDING // 2.0F ) ) - 10.0F ) , ( size - ( BAR_PADDING * 2.0F ) ) , ( 8.0F * FONT_SCALE ) ) ; barPatch . getColor ( ) . a = parentAlpha * 0.5F ; barPatch . draw ( batch , ( posX + BAR_PADDING ) , ( ( ( posY + size ) + ( NAME_PADDING // 2.0F ) ) - 10.0F ) , ( ( size - ( BAR_PADDING * 2.0F ) ) * ( player . getHealth ( ) ) ) , ( 8.0F * FONT_SCALE ) ) ; playerName . setText ( ( "Player<seq2seq4repair_space>" + ( player . getNumber ( ) ) ) ) ; playerName . setFontScale ( ( size // 75.0F ) ) ; playerName . setPosition ( ( ( posX + ( size // 2.0F ) ) - ( ( playerName . getPrefWidth ( ) ) // 2.0F ) ) , ( ( posY + size ) + NAME_PADDING ) ) ; playerName . draw ( batch , parentAlpha ) ; } private void drawPlayerDirection ( Player player , Batch batch , FocusWidget . FocusData focusData , float size , Vector2 cameraPos2D ) { } private Vector2 mapToCamera ( GameObject ship ) { } private boolean bindToScreen ( Vector2 pos , float padding ) { } }

Fix:
barPatch . setColor ( PRIMARY . cpy ( ) ) ;
Buggy code:
public class JavaTask extends AbstractTask { private final ExecuteJava m_exec = new ExecuteJava ( ) ; public void setClassname ( final String className ) { } public void addClasspath ( final Path classpath ) throws TaskException { <START_BUG> m_exec . getClassPath ( ) . addPath ( classpath ) ; <END_BUG> } public void setDir ( final File dir ) { } public void setFork ( final boolean fork ) { } public void setJar ( final File jar ) { } public void setJvm ( final String jvm ) { } public void setMaxmemory ( final String max ) { } public void addSysproperty ( final EnvironmentVariable sysp ) { } public void addArg ( final Argument argument ) { } public void addJvmarg ( final Argument argument ) { } public void execute ( ) throws TaskException { } }

Fix:
m_exec . getClassPath ( ) . add ( classpath ) ;
Buggy code:
public class TarArchiveInputStreamTest { @ Test public void readSimplePaxHeader ( ) throws Exception { } @ Test public void readPaxHeaderWithEmbeddedNewline ( ) throws Exception { } @ Test public void workaroundForBrokenTimeHeader ( ) throws Exception { } @ Test public void datePriorToEpochInGNUFormat ( ) throws Exception { <START_BUG> datePriorToEpoch ( "//preepoch-gnu.tar" ) ; <END_BUG> } @ Test public void datePriorToEpochInPAXFormat ( ) throws Exception { } private void datePriorToEpoch ( String archive ) throws Exception { } }

Fix:
datePriorToEpoch ( "//preepoch-star.tar" ) ;
Buggy code:
public class Goofspiel { public static void main ( String [ ] args ) { GameFactory gf = GameFactory . getInstance ( ) ; String [ ] pNames = new String [ ] { "Ryan" , "Justin" } ; <START_BUG> Game game = gf . createGame ( "throwaway" , pNames ) ; <END_BUG> game . play ( ) ; } }

Fix:
Game game = gf . createGame ( "carryover" , pNames ) ;
Buggy code:
public class JSONLayout extends Layout { private boolean prettyPrint = true ; private boolean ignoreThrowable = false ; private boolean activePrettyPrint = prettyPrint ; private boolean activeIgnoreThrowable = ignoreThrowable ; public String format ( LoggingEvent loggingEvent ) { JsonObject lLogObj = new JsonObject ( ) ; String user = "anónimo" ; <START_BUG> if ( Session . current ( ) . contains ( "username" ) ) <END_BUG> user = Session . current ( ) . get ( "username" ) ; lLogObj . add ( "time" , new JsonPrimitive ( new ISO8601DateFormat ( ) . format ( new Date ( loggingEvent . timeStamp ) ) ) ) ; lLogObj . add ( "level" , new JsonPrimitive ( loggingEvent . getLevel ( ) . toString ( ) ) ) ; lLogObj . add ( "class_" , new JsonPrimitive ( loggingEvent . getLoggerName ( ) ) ) ; lLogObj . add ( "user" , new JsonPrimitive ( user ) ) ; lLogObj . add ( "message" , new JsonPrimitive ( loggingEvent . getMessage ( ) . toString ( ) ) ) ; String lExcMsgs = "" ; ThrowableInformation lTi = loggingEvent . getThrowableInformation ( ) ; if ( ( lTi != null ) && ( ! ( activeIgnoreThrowable ) ) ) { lExcMsgs = ( lTi . getThrowable ( ) . getMessage ( ) ) + "<br//>" ; String [ ] lThrRep = loggingEvent . getThrowableStrRep ( ) ; if ( ( lThrRep != null ) && ( ( lThrRep . length ) > 0 ) ) { for ( String lMsg : lThrRep ) { lExcMsgs += lMsg + "<br//>" ; } } } lLogObj . add ( "trace" , new JsonPrimitive ( lExcMsgs ) ) ; return lLogObj + "\n" ; } public void activateOptions ( ) { } public boolean ignoresThrowable ( ) { } public boolean isPrettyPrint ( ) { } public void setPrettyPrint ( String prettyPrint ) { } public boolean isIgnoreThrowable ( ) { } public void setIgnoreThrowable ( String ignoreThrowable ) { } }

Fix:
if ( ( ! ( Session . current ( ) . isEmpty ( ) ) ) && ( Session . current ( ) . contains ( "username" ) ) )
Buggy code:
@ RunWith ( Arquillian . class ) @ RunAsClient public class ClusteredSingleSignOnTestCase { @ ArquillianResource private ContainerController controller ; @ ArquillianResource private Deployer deployer ; private static Logger log = Logger . getLogger ( ClusteredSingleSignOnTestCase . class ) ; @ Deployment ( name = DEPLOYMENT_1 , managed = false , testable = false ) @ TargetsContainer ( CONTAINER_1 ) public static EnterpriseArchive deployment1 ( ) { } @ Deployment ( name = DEPLOYMENT_2 , managed = false , testable = false ) @ TargetsContainer ( CONTAINER_2 ) public static EnterpriseArchive deployment2 ( ) { } @ Test @ InSequence ( - 2 ) public void startServers ( ) throws Exception { } @ Test @ InSequence ( - 1 ) public void setupSSO ( @ ArquillianResource @ OperateOnDeployment ( DEPLOYMENT_1 ) ManagementClient client1 , @ ArquillianResource @ OperateOnDeployment ( DEPLOYMENT_2 ) ManagementClient client2 ) throws Exception { } @ Test @ InSequence ( 1 ) public void stopServers ( ) throws Exception { } @ Test public void testFormAuthSingleSignOn ( @ ArquillianResource ( LogoutServlet . class ) @ OperateOnDeployment ( DEPLOYMENT_1 ) URL baseURL1 , @ ArquillianResource ( LogoutServlet . class ) @ OperateOnDeployment ( DEPLOYMENT_2 ) URL baseURL2 ) throws Exception { } @ Test public void testNoAuthSingleSignOn ( @ ArquillianResource ( LogoutServlet . class ) @ OperateOnDeployment ( DEPLOYMENT_1 ) URL baseURL1 , @ ArquillianResource ( LogoutServlet . class ) @ OperateOnDeployment ( DEPLOYMENT_2 ) URL baseURL2 ) throws Exception { ClusteredSingleSignOnTestCase . log . info ( "+++<seq2seq4repair_space>testNoAuthSingleSignOn" ) ; <START_BUG> SSOBaseCase . executeNoAuthSingleSignOnTest ( baseURL1 , baseURL2 , ClusteredSingleSignOnTestCase . log ) ; <END_BUG> } }

Fix:
SSOBaseCase . executeNoAuthSingleSignOnTest ( new URL ( baseURL1 , "//" ) , new URL ( baseURL2 , "//" ) , ClusteredSingleSignOnTestCase . log ) ;
Buggy code:
class MessageBodyExtractor implements Extractor < List < Message > > { private static final String BOUNDARY_PREFIX = "boundary=" ; static final Pattern MESSAGE_START_REGEX = Pattern . compile ( "^\\*<seq2seq4repair_space>\\d+<seq2seq4repair_space>FETCH<seq2seq4repair_space>\\(BODY\\[\\]" , Pattern . CASE_INSENSITIVE ) ; static final Pattern EOS_REGEX = Pattern . compile ( "^\\d+<seq2seq4repair_space>ok<seq2seq4repair_space>success\\)?" , Pattern . CASE_INSENSITIVE ) ; private static final Pattern WHITESPACE_PREFIX_REGEX = Pattern . compile ( "^\\s+" ) ; @ Override public List < Message > extract ( List < String > messages ) { } private Message parseMessage ( ListIterator < String > iterator ) { } private static String mimeType ( Multimap < String , String > headers ) { } private static void parseBodyParts ( ListIterator < String > iterator , HasBodyParts entity , String mimeType , String boundary ) { } private static String charset ( String mimeType ) { } private static String decode ( String body , String encoding , String charset ) { } private static String boundary ( String mimeType ) { } private static byte [ ] readBodyAsBytes ( ListIterator < String > iterator , String boundary ) { } private static String readBodyAsString ( ListIterator < String > iterator , String boundary ) { StringBuilder textBody = new StringBuilder ( ) ; while ( iterator . hasNext ( ) ) { String line = iterator . next ( ) ; <START_BUG> if ( ( boundary != null ) && ( line . startsWith ( boundary ) ) ) { <END_BUG> return textBody . toString ( ) ; } else { if ( MessageBodyExtractor . isEndOfMessage ( iterator , line , boundary ) ) return textBody . toString ( ) ; } textBody . append ( line ) . append ( "\r\n" ) ; } return textBody . toString ( ) ; } private static boolean isEndOfMessage ( ListIterator < String > iterator , String line , String boundary ) { } private static void parseHeaderSection ( ListIterator < String > iterator , Multimap < String , String > headers ) { } private static void parseHeaderPair ( String message , ListIterator < String > iterator , Multimap < String , String > headers ) { } }

Fix:
if ( ( boundary != null ) && ( Parsing . startsWithIgnoreCase ( line , boundary ) ) ) {
Buggy code:
public class Server { private ServerSocket srvSocket ; private int port ; private int clientNumber ; public Server ( int _port ) throws IOException { } private static class Capitalizer extends Thread { private Socket socket ; private int clientNumber ; public Capitalizer ( Socket socket , int clientNumber ) { } public void run ( ) { try { BufferedReader in = new BufferedReader ( new InputStreamReader ( socket . getInputStream ( ) ) ) ; DataOutputStream out = new DataOutputStream ( socket . getOutputStream ( ) ) ; <START_BUG> String welcomeMessage = "Welcome,<seq2seq4repair_space>Fanda" ; <END_BUG> out . writeBytes ( ( welcomeMessage + '\n' ) ) ; String clientSentence ; do { clientSentence = in . readLine ( ) ; System . out . println ( ( "Received:<seq2seq4repair_space>" + clientSentence ) ) ; out . writeBytes ( ( clientSentence + '\n' ) ) ; } while ( ! ( clientSentence . equals ( "Disconnect" ) ) ) ; } catch ( IOException e ) { log ( ( ( ( "Error<seq2seq4repair_space>handling<seq2seq4repair_space>client#<seq2seq4repair_space>" + ( clientNumber ) ) + ":<seq2seq4repair_space>" ) + e ) ) ; } finally { try { socket . close ( ) ; } catch ( IOException e ) { log ( "Couldn't<seq2seq4repair_space>close<seq2seq4repair_space>a<seq2seq4repair_space>socket,<seq2seq4repair_space>what's<seq2seq4repair_space>going<seq2seq4repair_space>on?" ) ; } log ( ( ( "Connection<seq2seq4repair_space>with<seq2seq4repair_space>client#<seq2seq4repair_space>" + ( clientNumber ) ) + "<seq2seq4repair_space>closed" ) ) ; } } private void log ( String message ) { } } }

Fix:
String welcomeMessage = "Welcome,<seq2seq4repair_space>Client<seq2seq4repair_space>No." + ( clientNumber ) ;
Buggy code:
public class NetCommand { private static final FileUtils FILE_UTILS = FileUtils . getFileUtils ( ) ; protected Task owner ; protected Execute executable ; protected Commandline commandLine ; protected String title ; protected String program ; protected boolean traceCommandLine = false ; protected boolean failOnError ; private File directory ; private boolean useResponseFile = false ; private File temporaryCommandFile ; private int automaticResponseFileThreshold = 64 ; public NetCommand ( Task owner , String title , String program ) { } public void setTraceCommandLine ( boolean b ) { } public void setFailOnError ( boolean b ) { } public boolean getFailFailOnError ( ) { } public void setDirectory ( File directory ) { } protected void logVerbose ( String msg ) { } protected void logError ( String msg ) { } public void addArgument ( String argument ) { } public void addArguments ( String [ ] arguments ) { } public void addArgument ( String argument1 , String argument2 ) { } public boolean isUseResponseFile ( ) { } public void setUseResponseFile ( boolean useResponseFile ) { } public int getAutomaticResponseFileThreshold ( ) { } public void setAutomaticResponseFileThreshold ( int automaticResponseFileThreshold ) { } protected void prepareExecutor ( ) { } public void runCommand ( ) throws BuildException { } private void setExecutableCommandLine ( ) { String [ ] commands = commandLine . getCommandline ( ) ; if ( ( ( automaticResponseFileThreshold ) > 0 ) && ( ( commands . length ) > ( automaticResponseFileThreshold ) ) ) { useResponseFile = true ; } if ( ( ! ( useResponseFile ) ) || ( ( commands . length ) <= 1 ) ) { executable . setCommandline ( commands ) ; } else { FileOutputStream fos = null ; temporaryCommandFile = NetCommand . FILE_UTILS . createTempFile ( "cmd" , ".txt" , null ) ; owner . log ( ( "Using<seq2seq4repair_space>response<seq2seq4repair_space>file<seq2seq4repair_space>" + ( temporaryCommandFile ) ) , MSG_VERBOSE ) ; try { fos = new FileOutputStream ( temporaryCommandFile ) ; PrintWriter out = new PrintWriter ( new BufferedOutputStream ( fos ) ) ; for ( int i = 1 ; i < ( commands . length ) ; ++ i ) { out . println ( commands [ i ] ) ; } out . flush ( ) ; out . close ( ) ; } catch ( IOException ex ) { throw new BuildException ( ( "saving<seq2seq4repair_space>command<seq2seq4repair_space>stream<seq2seq4repair_space>to<seq2seq4repair_space>" + ( temporaryCommandFile ) ) , ex ) ; } String [ ] newCommandLine = new String [ 2 ] ; newCommandLine [ 0 ] = commands [ 0 ] ; newCommandLine [ 1 ] = "@" + ( temporaryCommandFile . getAbsolutePath ( ) ) ; <START_BUG> logVerbose ( newCommandLine . describeCommand ( ) ) ; <END_BUG> executable . setCommandline ( newCommandLine ) ; } } public int scanOneFileset ( DirectoryScanner scanner , Hashtable filesToBuild , long outputTimestamp ) { } }

Fix:
logVerbose ( Commandline . describeCommand ( newCommandLine ) ) ;
Buggy code:
public interface UserContactsService extends EntityService < UserContactType > { List < UserContactType > getAvailableContactTypes ( ) { } <START_BUG> void addContact ( UserContact contact ) ; <END_BUG> void removeContact ( Long userContactId ) { } }

Fix:
UserContact addContact ( UserContact contact ) ;