nus-yam/ex-repair huggingface dataset:
Buggy code:
public class BooleanProperty extends AbstractProperty { boolean value ; public BooleanProperty ( String name , boolean v ) { } public BooleanProperty ( ) { } public void setObjectValue ( Object v ) { } public String getStringValue ( ) { <START_BUG> return Boolean . toString ( value ) ; <END_BUG> } public Object getObjectValue ( ) { } public Object clone ( ) { } public boolean getBooleanValue ( ) { } }

Fix:
return value ? "true" : "false" ;
Buggy code:
public class AssertStatement extends Statement { public Expression assertExpression ; public Expression exceptionArgument ; int preAssertInitStateIndex = - 1 ; private FieldBinding assertionSyntheticFieldBinding ; public AssertStatement ( Expression exceptionArgument , Expression assertExpression , int startPosition ) { } public AssertStatement ( Expression assertExpression , int startPosition ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public void resolve ( BlockScope scope ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo ) { if ( ! ( flowInfo . isReachable ( ) ) ) return ; SourceTypeBinding outerMostClass = currentScope . enclosingSourceType ( ) ; while ( outerMostClass . isLocalType ( ) ) { ReferenceBinding enclosing = outerMostClass . enclosingType ( ) ; if ( ( enclosing == null ) || ( enclosing . isInterface ( ) ) ) break ; outerMostClass = ( ( SourceTypeBinding ) ( enclosing ) ) ; } this . assertionSyntheticFieldBinding = outerMostClass . addSyntheticFieldForAssert ( currentScope ) ; TypeDeclaration typeDeclaration = outerMostClass . scope . referenceType ( ) ; AbstractMethodDeclaration [ ] methods = typeDeclaration . methods ; for ( int i = 0 , max = methods . length ; i < max ; i ++ ) { AbstractMethodDeclaration method = methods [ i ] ; if ( method . isClinit ( ) ) { <START_BUG> ( ( Clinit ) ( method ) ) . setAssertionSupport ( assertionSyntheticFieldBinding , ( ( currentScope . environment ( ) . options . sourceLevel ) < ( ClassFileConstants . JDK1_5 ) ) ) ; <END_BUG> break ; } } } public StringBuffer printStatement ( int tab , StringBuffer output ) { } }

Fix:
( ( Clinit ) ( method ) ) . setAssertionSupport ( assertionSyntheticFieldBinding , ( ( currentScope . compilerOptions ( ) . sourceLevel ) < ( ClassFileConstants . JDK1_5 ) ) ) ;
Buggy code:
public class CodeSnippetFieldReference extends FieldReference implements ProblemReasons , EvaluationConstants { EvaluationContext evaluationContext ; FieldBinding delegateThis ; public CodeSnippetFieldReference ( char [ ] source , long pos , EvaluationContext evaluationContext ) { } public void generateAssignment ( BlockScope currentScope , CodeStream codeStream , Assignment assignment , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void generateCompoundAssignment ( BlockScope currentScope , CodeStream codeStream , Expression expression , int operator , int assignmentImplicitConversion , boolean valueRequired ) { } public void generatePostIncrement ( BlockScope currentScope , CodeStream codeStream , CompoundAssignment postIncrement , boolean valueRequired ) { } public void manageSyntheticReadAccessIfNecessary ( BlockScope currentScope ) { } public void manageSyntheticWriteAccessIfNecessary ( BlockScope currentScope ) { } public TypeBinding resolveType ( BlockScope scope ) { receiverType = receiver . resolveType ( scope ) ; if ( ( receiverType ) == null ) { constant = NotAConstant ; return null ; } this . codegenBinding = this . binding = scope . getField ( receiverType , token , this ) ; FieldBinding firstAttempt = binding ; boolean isNotVisible = false ; if ( ! ( binding . isValidBinding ( ) ) ) { if ( ( ( binding ) instanceof ProblemFieldBinding ) && ( ( ( ( ProblemFieldBinding ) ( binding ) ) . problemId ( ) ) == ( ProblemReasons . NotVisible ) ) ) { isNotVisible = true ; if ( ( this . evaluationContext . declaringTypeName ) != null ) { delegateThis = scope . getField ( scope . enclosingSourceType ( ) , EvaluationConstants . DELEGATE_THIS , this ) ; if ( ( delegateThis ) == null ) { constant = NotAConstant ; scope . problemReporter ( ) . invalidField ( this , receiverType ) ; return null ; } } else { constant = NotAConstant ; scope . problemReporter ( ) . invalidField ( this , receiverType ) ; return null ; } CodeSnippetScope localScope = new CodeSnippetScope ( scope ) ; this . codegenBinding = this . binding = localScope . getFieldForCodeSnippet ( delegateThis . type , token , this ) ; } } if ( ! ( binding . isValidBinding ( ) ) ) { constant = NotAConstant ; if ( isNotVisible ) { this . codegenBinding = this . binding = firstAttempt ; } scope . problemReporter ( ) . invalidField ( this , receiverType ) ; return null ; } if ( isFieldUseDeprecated ( binding , scope ) ) scope . problemReporter ( ) . deprecatedField ( binding , this ) ; constant = FieldReference . getConstantFor ( binding , ( ( receiver ) == ( ThisImplicit ) ) , this , scope , 0 ) ; if ( ! ( receiver . isThis ( ) ) ) constant = NotAConstant ; <START_BUG> return binding . type ; <END_BUG> } }

Fix:
return this . expressionType = binding . type ;
Buggy code:
public class BoundsMenuListener implements ActionListener { @ Override public void actionPerformed ( ActionEvent e ) { if ( e . getActionCommand ( ) . equals ( "Set<seq2seq4repair_space>Bounds" ) ) { Component frame = null ; String bounds = ( ( String ) ( JOptionPane . showInputDialog ( frame , "Specify<seq2seq4repair_space>Bounds<seq2seq4repair_space>Seperated<seq2seq4repair_space>By<seq2seq4repair_space>Spaces:" , "Set<seq2seq4repair_space>Bounds" , JOptionPane . PLAIN_MESSAGE , null , null , "" ) ) ) ; <START_BUG> if ( ( ( ( ( bounds != null ) && ( ( bounds . length ( ) ) == 7 ) ) || ( ( bounds . length ( ) ) == 8 ) ) || ( ( bounds . length ( ) ) == 9 ) ) || ( ( bounds . length ( ) ) == 11 ) ) { <END_BUG> int [ ] selectBounds = new int [ ] { 0 , 0 , 0 , 0 } ; int j = 0 ; String [ ] userBounds = bounds . split ( "<seq2seq4repair_space>" ) ; for ( int i = 0 ; i < ( userBounds . length ) ; i ++ ) { selectBounds [ i ] = Integer . parseInt ( String . valueOf ( userBounds [ i ] ) ) ; } BoardJPanel . setBounds ( selectBounds ) ; feedback . setText ( "Bounds<seq2seq4repair_space>updated" ) ; } else { feedback . setText ( "Invalid<seq2seq4repair_space>bounds<seq2seq4repair_space>supplied" ) ; } } else { int lines = BoardJPanel . getLines ( ) ; int [ ] noBounds = new int [ ] { 0 , 0 , lines , lines } ; BoardJPanel . setBounds ( noBounds ) ; feedback . setText ( "Bounds<seq2seq4repair_space>removed" ) ; } } No newline ; at end ; of file ; }

Fix:
if ( ( ( ( ( ( bounds != null ) && ( ( bounds . length ( ) ) == 7 ) ) || ( ( bounds . length ( ) ) == 8 ) ) || ( ( bounds . length ( ) ) == 9 ) ) || ( ( bounds . length ( ) ) == 10 ) ) || ( ( bounds . length ( ) ) == 11 ) ) {
Buggy code:
public class Competition { public final ObjectId _id ; public final ArrayList < SchoolInteger > kiosk ; public final ArrayList < SchoolInteger > programming ; public final ArrayList < SchoolInteger > robotConstruction ; public final ArrayList < SchoolInteger > robotDesign ; public final ArrayList < SchoolInteger > sportsmanship ; public final ArrayList < SchoolInteger > video ; public final ArrayList < SchoolInteger > websiteDesign ; public final ArrayList < SchoolInteger > websiteJournalism ; public Competition ( @ JsonProperty ( "_id" ) ObjectId _competitionId , @ JsonProperty ( "kiosk" ) ArrayList < SchoolInteger > _kiosk , @ JsonProperty ( "programming" ) ArrayList < SchoolInteger > _programming , @ JsonProperty ( "robotConstruction" ) ArrayList < SchoolInteger > _robotConstruction , @ JsonProperty ( "robotDesign" ) ArrayList < SchoolInteger > _robotDesign , @ JsonProperty ( "sportsmanship" ) ArrayList < SchoolInteger > _sportsmanship , @ JsonProperty ( "video" ) ArrayList < SchoolInteger > _video , @ JsonProperty ( "websiteDesign" ) ArrayList < SchoolInteger > _websiteDesign , @ JsonProperty ( "websiteJournalism" ) ArrayList < SchoolInteger > _websiteJournalism ) { } private static int getAspectPoints ( ArrayList < School > aspect , School school ) { if ( ( aspect . indexOf ( school ) ) == ( - 1 ) ) { return 0 ; } <START_BUG> return ( aspect . size ( ) ) - ( aspect . indexOf ( school ) ) ; <END_BUG> } public static int getSchoolInteger ( ArrayList < SchoolInteger > schoolIntegerList , School school ) { } public static int getAspectPointInteger ( ArrayList < SchoolInteger > schoolIntegerList , School school ) { } public int getSchoolScore ( ArrayList < School > playoffRanking , School school ) { } public ArrayList < School > getCompetitionRanking ( Essentials essentials ) { } public static Competition get ( Database database ) { } }

Fix:
return ( ( aspect . size ( ) ) - ( aspect . indexOf ( school ) ) ) + 1 ;
Buggy code:
public class SendMessageCommand extends Command { private SendMessageDialog sendMessageDialog ; private boolean showComposer = false ; private ComposerController composerController ; public SendMessageCommand ( ICommandReference reference ) { } private void showInvalidRecipientMessage ( String recipient ) { } private boolean validArguments ( ComposerCommandReference reference ) { } public void execute ( IWorkerStatusController worker ) throws Exception { } public void updateGUI ( ) throws Exception { if ( ( sendMessageDialog ) != null ) { sendMessageDialog . setVisible ( false ) ; } if ( ( ( showComposer ) == true ) && ( ( composerController . getView ( ) . getFrame ( ) ) != null ) ) { composerController . getView ( ) . getFrame ( ) . setVisible ( true ) ; composerController . getView ( ) . getFrame ( ) . requestFocus ( ) ; } else { composerController . setPromptOnDialogClosing ( false ) ; <START_BUG> composerController . getContainer ( ) . close ( ) ; <END_BUG> } } }

Fix:
composerController . fireClosed ( ) ;
Buggy code:
public class DiscoveryStartup { public static final String DISCOVERY_CONTAINER = "ecf.discovery.jmdns" ; public static final String PROP_PROTOCOL_NAME = "protocol" ; public static final String PROP_CONTAINER_TYPE_NAME = "containertype" ; public static final String PROP_CONTAINER_TYPE_VALUE = CollabClient . GENERIC_CONTAINER_CLIENT_NAME ; public static final String PROP_PW_REQ_NAME = "pwrequired" ; public static final String PROP_PW_REQ_VALUE = "false" ; public static final String PROP_DEF_USER_NAME = "defaultuser" ; public static final String PROP_DEF_USER_VALUE = "guest" ; public static final String PROP_PATH_NAME = "path" ; public static final int SVC_DEF_WEIGHT = 0 ; public static final int SVC_DEF_PRIORITY = 0 ; static IDiscoveryContainerAdapter discovery = null ; static IContainer container = null ; public DiscoveryStartup ( ) throws Exception { } protected IDiscoveryContainerAdapter getDiscoveryContainer ( ) { } protected IContainer getContainer ( ) { } public void dispose ( ) { } protected boolean isActive ( ) { } protected void setupDiscovery ( ) throws Exception { } protected void connectToServiceFromInfo ( IServiceInfo svcInfo ) { IServiceProperties props = svcInfo . getServiceProperties ( ) ; String type = ( ( String ) ( props . getPropertyString ( DiscoveryStartup . PROP_CONTAINER_TYPE_NAME ) ) ) ; if ( ( type == null ) || ( type . equals ( "" ) ) ) { type = CollabClient . GENERIC_CONTAINER_CLIENT_NAME ; } String username = System . getProperty ( "user.name" ) ; String targetString = null ; IResource workspace = null ; try { <START_BUG> targetString = svcInfo . getServiceURI ( ) . toString ( ) ; <END_BUG> workspace = CollabClient . getWorkspace ( ) ; } catch ( Exception e ) { ClientPlugin . log ( ( "Exception<seq2seq4repair_space>connecting<seq2seq4repair_space>to<seq2seq4repair_space>service<seq2seq4repair_space>with<seq2seq4repair_space>info<seq2seq4repair_space>" + svcInfo ) , e ) ; return ; } URIClientConnectAction action = new URIClientConnectAction ( type , targetString , username , null , workspace , false ) ; action . run ( null ) ; } public static void registerService ( URI uri ) { } public static void unregisterServer ( ISharedObjectContainer container ) { } public static void registerServiceTypes ( ) { } }

Fix:
targetString = new URI ( svcInfo . getServiceID ( ) . getName ( ) ) . toString ( ) ;
Buggy code:
public class MockHttpServletResponse implements HttpServletResponse { private static final int MODE_BINARY = 1 ; private static final int MODE_NONE = 0 ; private static final int MODE_TEXT = 2 ; private ByteArrayOutputStream byteStream ; private String characterEncoding = "UTF-8" ; private int code = HttpServletResponse . SC_OK ; private final List cookies = new ArrayList ( ) ; private String errorMessage = null ; private final ValueMap headers = new ValueMap ( ) ; private Locale locale = null ; private int mode = MockHttpServletResponse . MODE_NONE ; private PrintWriter printWriter ; private String redirectLocation = null ; private ServletOutputStream servletStream ; private int status = HttpServletResponse . SC_OK ; private StringWriter stringWriter ; public MockHttpServletResponse ( ) { } public void addCookie ( final Cookie cookie ) { } public void addDateHeader ( String name , long l ) { } public void addHeader ( final String name , final String value ) { } public void addIntHeader ( final String name , final int i ) { } public boolean containsHeader ( final String name ) { } public String encodeRedirectUrl ( final String url ) { } public String encodeRedirectURL ( final String url ) { } public String encodeUrl ( final String url ) { } public String encodeURL ( final String url ) { } public void flushBuffer ( ) throws IOException { } public byte [ ] getBinaryContent ( ) { } public int getBufferSize ( ) { } public String getCharacterEncoding ( ) { } public int getCode ( ) { } public Collection getCookies ( ) { } public String getDocument ( ) { } public String getErrorMessage ( ) { } public String getHeader ( final String name ) { } public Set getHeaderNames ( ) { } public Locale getLocale ( ) { } public ServletOutputStream getOutputStream ( ) throws IOException { } public String getRedirectLocation ( ) { } public int getStatus ( ) { } public PrintWriter getWriter ( ) throws IOException { } public void initialize ( ) { } public boolean isCommitted ( ) { } public boolean isError ( ) { } public boolean isRedirect ( ) { } public void reset ( ) { } public void resetBuffer ( ) { } public void sendError ( final int code ) throws IOException { } public void sendError ( final int code , final String msg ) throws IOException { } public void sendRedirect ( String location ) throws IOException { } public void setBufferSize ( final int size ) { } public void setCharacterEncoding ( final String characterEncoding ) { } public void setContentLength ( final int length ) { } public void setContentType ( final String type ) { } public void setDateHeader ( final String name , final long l ) { } public void setHeader ( final String name , final String value ) { List l = new ArrayList ( 1 ) ; l . add ( value ) ; <START_BUG> headers . put ( name , value ) ; <END_BUG> } public void setIntHeader ( final String name , final int i ) { } public void setLocale ( final Locale locale ) { } public void setStatus ( final int status ) { } public void setStatus ( final int status , final String msg ) { } }

Fix:
headers . put ( name , l ) ;
Buggy code:
public abstract class OneDReader implements Reader { private static final int INTEGER_MATH_SHIFT = 8 ; protected static final int PATTERN_MATCH_RESULT_SCALE_FACTOR = 1 << ( OneDReader . INTEGER_MATH_SHIFT ) ; public Result decode ( BinaryBitmap image ) throws FormatException , NotFoundException { } public Result decode ( BinaryBitmap image , Hashtable hints ) throws FormatException , NotFoundException { } public void reset ( ) { } private Result doDecode ( BinaryBitmap image , Hashtable hints ) throws NotFoundException { int width = image . getWidth ( ) ; int height = image . getHeight ( ) ; BitArray row = new BitArray ( width ) ; int middle = height > > 1 ; boolean tryHarder = ( hints != null ) && ( hints . containsKey ( TRY_HARDER ) ) ; <START_BUG> int rowStep = Math . max ( 1 , ( height > > ( tryHarder ? 7 : 4 ) ) ) ; <END_BUG> int maxLines ; if ( tryHarder ) { maxLines = height ; } else { maxLines = 9 ; } for ( int x = 0 ; x < maxLines ; x ++ ) { int rowStepsAboveOrBelow = ( x + 1 ) > > 1 ; boolean isAbove = ( x & 1 ) == 0 ; int rowNumber = middle + ( rowStep * ( isAbove ? rowStepsAboveOrBelow : - rowStepsAboveOrBelow ) ) ; if ( ( rowNumber < 0 ) || ( rowNumber >= height ) ) { break ; } try { row = image . getBlackRow ( rowNumber , row ) ; } catch ( NotFoundException nfe ) { continue ; } for ( int attempt = 0 ; attempt < 2 ; attempt ++ ) { if ( attempt == 1 ) { row . reverse ( ) ; if ( ( hints != null ) && ( hints . containsKey ( NEED_RESULT_POINT_CALLBACK ) ) ) { Hashtable newHints = new Hashtable ( ) ; Enumeration hintEnum = hints . keys ( ) ; while ( hintEnum . hasMoreElements ( ) ) { Object key = hintEnum . nextElement ( ) ; if ( ! ( key . equals ( NEED_RESULT_POINT_CALLBACK ) ) ) { newHints . put ( key , hints . get ( key ) ) ; } } hints = newHints ; } } try { Result result = decodeRow ( rowNumber , row , hints ) ; if ( attempt == 1 ) { result . putMetadata ( ORIENTATION , new Integer ( 180 ) ) ; ResultPoint [ ] points = result . getResultPoints ( ) ; points [ 0 ] = new ResultPoint ( ( ( width - ( points [ 0 ] . getX ( ) ) ) - 1 ) , points [ 0 ] . getY ( ) ) ; points [ 1 ] = new ResultPoint ( ( ( width - ( points [ 1 ] . getX ( ) ) ) - 1 ) , points [ 1 ] . getY ( ) ) ; } return result ; } catch ( ReaderException re ) { } } } throw NotFoundException . getNotFoundInstance ( ) ; } protected static void recordPattern ( BitArray row , int start , int [ ] counters ) throws NotFoundException { } protected static void recordPatternInReverse ( BitArray row , int start , int [ ] counters ) throws NotFoundException { } protected static int patternMatchVariance ( int [ ] counters , int [ ] pattern , int maxIndividualVariance ) { } public abstract Result decodeRow ( int rowNumber , BitArray row , Hashtable hints ) throws ChecksumException , FormatException , NotFoundException { } }

Fix:
int rowStep = Math . max ( 1 , ( height > > ( tryHarder ? 8 : 4 ) ) ) ;
Buggy code:
public class ImageCellRenderer implements GridCellRenderer < Example > { boolean shrinkImage = false ; Integer maxWidth ; Integer maxHeight ; private static final Logger log = Logger . getLogger ( SearchResultPanel . class . toString ( ) ) ; protected final Set < String > imageProperties ; public ImageCellRenderer ( Set < String > imageProperties , Integer maxWidth , Integer maxHeight ) { } @ Override public Object render ( Example model , String property , ColumnData config , int rowIndex , int colIndex , ListStore < Example > store , Grid < Example > grid ) { boolean containsImage = false ; String imageURL = null ; Image image = null ; for ( String imageProperty : imageProperties ) { imageURL = model . get ( property ) ; if ( ( imageURL == null ) || ( imageURL . isEmpty ( ) ) ) { continue ; } image = new Image ( imageURL ) ; containsImage = true ; break ; } if ( ! containsImage ) { return new HTML ( "" ) ; } ImageCellRenderer . log . info ( ( "rendering<seq2seq4repair_space>" + imageURL ) ) ; if ( ( ( shrinkImage ) && ( image != null ) ) && ( ( ( image . getWidth ( ) ) > ( maxWidth ) ) || ( ( image . getHeight ( ) ) > ( maxHeight ) ) ) ) { <START_BUG> double shrinkFactor = Math . min ( ( ( ( double ) ( maxWidth ) ) // ( image . getWidth ( ) ) ) , ( ( ( double ) ( maxHeight ) ) // ( image . getHeight ( ) ) ) ) ; <END_BUG> image . setPixelSize ( ( ( int ) ( ( ( double ) ( image . getWidth ( ) ) ) * shrinkFactor ) ) , ( ( int ) ( ( ( double ) ( image . getHeight ( ) ) ) * shrinkFactor ) ) ) ; } return image ; } No newline ; at end ; of file ; }

Fix:
double shrinkFactor = Math . max ( ( ( ( double ) ( maxWidth ) ) // ( image . getWidth ( ) ) ) , ( ( ( double ) ( maxHeight ) ) // ( image . getHeight ( ) ) ) ) ;
Buggy code:
public class UrlResourceStream extends AbstractResourceStream { private static final long serialVersionUID = 1L ; private static Log log = LogFactory . getLog ( UrlResourceStream . class ) ; private transient InputStream inputStream ; private URL url ; private File file ; private int contentLength ; private String contentType ; private long lastModified ; public UrlResourceStream ( final URL url ) { } public void close ( ) throws IOException { } public String getContentType ( ) { } private void testContentType ( ) { if ( ( ( contentType ) == null ) || ( ( contentType . indexOf ( "unknown" ) ) != ( - 1 ) ) ) { Application application = Application . get ( ) ; if ( application instanceof WebApplication ) { <START_BUG> contentType = ( ( WebApplication ) ( application ) ) . getWicketServlet ( ) . getServletContext ( ) . getMimeType ( url . getFile ( ) ) ; <END_BUG> if ( ( contentType ) == null ) { contentType = URLConnection . getFileNameMap ( ) . getContentTypeFor ( url . getFile ( ) ) ; } } else { contentType = URLConnection . getFileNameMap ( ) . getContentTypeFor ( url . getFile ( ) ) ; } } } public InputStream getInputStream ( ) throws ResourceStreamNotFoundException { } public URL getURL ( ) { } public Time lastModifiedTime ( ) { } @ Override public String toString ( ) { } public long length ( ) { } }

Fix:
contentType = ( ( WebApplication ) ( application ) ) . getServletContext ( ) . getMimeType ( url . getFile ( ) ) ;
Buggy code:
public final class WildcardType implements IType , ITyped { public ICodePosition position ; protected IType bound ; protected Variance variance ; public WildcardType ( Variance variance ) { } public WildcardType ( ICodePosition position ) { } @ Override public void setType ( IType upperBound ) { } @ Override public IType getType ( ) { } public void setVariance ( Variance variance ) { } public Variance getVariance ( ) { } @ Override public int typeTag ( ) { } @ Override public Name getName ( ) { } @ Override public IClass getTheClass ( ) { } @ Override public IType getReturnType ( ) { <START_BUG> if ( ( this . variance ) == ( Variance . CONTRAVARIANT ) ) { <END_BUG> return Types . ANY ; } return this . bound ; } @ Override public IType getSuperType ( ) { } @ Override public boolean equals ( IType type ) { } @ Override public boolean isSuperTypeOf ( IType type ) { } @ Override public boolean isResolved ( ) { } @ Override public IType resolve ( MarkerList markers , IContext context , TypePosition position ) { } @ Override public IType resolveType ( ITypeVariable typeVar ) { } @ Override public void inferTypes ( IType concrete , ITypeContext typeContext ) { } @ Override public boolean hasTypeVariables ( ) { } @ Override public IType getConcreteType ( ITypeContext context ) { } @ Override public IDataMember resolveField ( Name name ) { } @ Override public void getMethodMatches ( List < MethodMatch > list , IValue instance , Name name , IArguments arguments ) { } @ Override public void getConstructorMatches ( List < ConstructorMatch > list , IArguments arguments ) { } @ Override public IMethod getFunctionalMethod ( ) { } @ Override public String getInternalName ( ) { } @ Override public void appendExtendedName ( StringBuilder buffer ) { } @ Override public void appendSignature ( StringBuilder buffer ) { } @ Override public int getLoadOpcode ( ) { } @ Override public int getArrayLoadOpcode ( ) { } @ Override public int getStoreOpcode ( ) { } @ Override public int getArrayStoreOpcode ( ) { } @ Override public int getReturnOpcode ( ) { } @ Override public void writeTypeExpression ( MethodWriter writer ) throws BytecodeException { } @ Override public WildcardType clone ( ) { } @ Override public String toString ( ) { } @ Override public void toString ( String prefix , StringBuilder buffer ) { } }

Fix:
if ( ( ( this . bound ) == null ) || ( ( this . variance ) == ( Variance . CONTRAVARIANT ) ) ) {
Buggy code:
public final class Image extends Resource implements Drawable { public int type ; public int pixmap ; public int mask ; int surface ; int surfaceData ; int transparentPixel = - 1 ; GC memGC ; byte [ ] alphaData ; int alpha = - 1 ; int width = - 1 ; int height = - 1 ; static final int DEFAULT_SCANLINE_PAD = 4 ; Image ( ) { } public Image ( Device device , int width , int height ) { } public Image ( Device device , Image srcImage , int flag ) { } public Image ( Device device , Rectangle bounds ) { } public Image ( Device device , ImageData data ) { } public Image ( Device device , ImageData source , ImageData mask ) { } public Image ( Device device , InputStream stream ) { } public Image ( Device device , String filename ) { } void createAlphaMask ( int width , int height ) { } void createMask ( ) { } int createMask ( ImageData image , boolean copy ) { } void createSurface ( ) { } void destroyMask ( ) { } public void dispose ( ) { } public boolean equals ( Object object ) { } public Color getBackground ( ) { } public Rectangle getBounds ( ) { } public ImageData getImageData ( ) { } public static Image gtk_new ( Device device , int type , int pixmap , int mask ) { } public int hashCode ( ) { } void init ( Device device , int width , int height ) { } void init ( Device device , ImageData image ) { } public int internal_new_GC ( GCData data ) { if ( ( pixmap ) == 0 ) SWT . error ( ERROR_GRAPHIC_DISPOSED ) ; if ( ( ( type ) != ( SWT . BITMAP ) ) || ( ( memGC ) != null ) ) { SWT . error ( ERROR_INVALID_ARGUMENT ) ; } int gdkGC = OS . gdk_gc_new ( pixmap ) ; if ( data != null ) { int mask = ( SWT . LEFT_TO_RIGHT ) | ( SWT . RIGHT_TO_LEFT ) ; if ( ( ( data . style ) & mask ) == 0 ) { data . style |= SWT . LEFT_TO_RIGHT ; } else { if ( ( ( data . style ) & ( SWT . RIGHT_TO_LEFT ) ) != 0 ) { data . style |= SWT . MIRRORED ; } } data . device = device ; data . drawable = pixmap ; data . background = COLOR_WHITE . handle ; data . foreground = COLOR_BLACK . handle ; <START_BUG> data . font = systemFont . handle ; <END_BUG> data . image = this ; } return gdkGC ; } public void internal_dispose_GC ( int gdkGC , GCData data ) { } public boolean isDisposed ( ) { } public void setBackground ( Color color ) { } public String toString ( ) { } }

Fix:
data . font = device . systemFont ;
Buggy code:
public class HierarchyScope extends AbstractSearchScope implements SuffixConstants { public IType focusType ; private String focusPath ; private WorkingCopyOwner owner ; private ITypeHierarchy hierarchy ; private IType [ ] types ; private HashSet resourcePaths ; private IPath [ ] enclosingProjectsAndJars ; protected IResource [ ] elements ; protected int elementCount ; public boolean needsRefresh ; public void add ( IResource element ) { } public HierarchyScope ( IType type , WorkingCopyOwner owner ) throws JavaModelException { } private void buildResourceVector ( ) throws JavaModelException { } private IPath [ ] computeProjectsAndJars ( IType type ) throws JavaModelException { } private void computeDependents ( IJavaProject project , HashSet set , HashSet visited ) { } public boolean encloses ( String resourcePath ) { } public boolean encloses ( IJavaElement element ) { if ( ( this . hierarchy ) == null ) { if ( this . focusType . equals ( element . getAncestor ( IJavaElement . TYPE ) ) ) { return true ; } else { if ( this . needsRefresh ) { try { this . initialize ( ) ; } catch ( JavaModelException e ) { return false ; } } else { return true ; } } } if ( this . needsRefresh ) { try { this . refresh ( ) ; } catch ( JavaModelException e ) { return false ; } } IType type = null ; if ( element instanceof IType ) { type = ( ( IType ) ( element ) ) ; } else if ( element instanceof IMember ) { type = ( ( IMember ) ( element ) ) . getDeclaringType ( ) ; } if ( type != null ) { if ( this . hierarchy . contains ( type ) ) { return true ; } else { IType original ; <START_BUG> if ( ( ! ( type . isBinary ( ) ) ) && ( ( original = ( ( IType ) ( type . getCompilationUnit ( ) . getOriginal ( type ) ) ) ) != null ) ) { <END_BUG> return this . hierarchy . contains ( original ) ; } } } return false ; } public IPath [ ] enclosingProjectsAndJars ( ) { } protected void initialize ( ) throws JavaModelException { } public void processDelta ( IJavaElementDelta delta ) { } protected void refresh ( ) throws JavaModelException { } public String toString ( ) { } }

Fix:
if ( ( ! ( type . isBinary ( ) ) ) && ( ( original = ( ( IType ) ( type . getPrimaryElement ( ) ) ) ) != null ) ) {
Buggy code:
public class FacilitiesPropertyOwner implements Parcelable { private String id ; private String name ; private String phone ; private String email ; public FacilitiesPropertyOwner ( ) { } public String getId ( ) { } public void setId ( String id ) { } public String getName ( ) { } public void setName ( String name ) { } public String getPhone ( ) { } public void setPhone ( String phone ) { } public String getEmail ( ) { } public void setEmail ( String email ) { } @ Override public String toString ( ) { } protected FacilitiesPropertyOwner ( Parcel in ) { } @ Override public int describeContents ( ) { } @ Override public void writeToParcel ( Parcel dest , int flags ) { dest . writeString ( id ) ; dest . writeString ( name ) ; dest . writeString ( phone ) ; <START_BUG> dest . writeString ( phone ) ; <END_BUG> } @ SuppressWarnings ( "unused" ) public static final Parcelable . Creator < FacilitiesPropertyOwner > CREATOR = new Parcelable . Creator < FacilitiesPropertyOwner > ( ) { @ Override public FacilitiesPropertyOwner createFromParcel ( Parcel in ) { } @ Override public FacilitiesPropertyOwner [ ] newArray ( int size ) { } } ; }

Fix:
dest . writeString ( email ) ;
Buggy code:
public final class DefaultSolrCoreState extends SolrCoreState implements RecoveryStrategy . RecoveryListener { public static Logger log = LoggerFactory . getLogger ( DefaultSolrCoreState . class ) ; private final boolean SKIP_AUTO_RECOVERY = Boolean . getBoolean ( "solrcloud.skip.autorecovery" ) ; private final Object recoveryLock = new Object ( ) ; private final Object writerPauseLock = new Object ( ) ; private SolrIndexWriter indexWriter = null ; private DirectoryFactory directoryFactory ; private volatile boolean recoveryRunning ; private RecoveryStrategy recoveryStrat ; private volatile boolean closed = false ; private RefCounted < IndexWriter > refCntWriter ; private boolean pauseWriter ; private boolean writerFree = true ; protected final ReentrantLock commitLock = new ReentrantLock ( ) ; public DefaultSolrCoreState ( DirectoryFactory directoryFactory ) { } private void closeIndexWriter ( IndexWriterCloser closer ) { } @ Override public RefCounted < IndexWriter > getIndexWriter ( SolrCore core ) throws IOException { } private void initRefCntWriter ( ) { } @ Override public synchronized void newIndexWriter ( SolrCore core , boolean rollback , boolean forceNewDir ) throws IOException { } @ Override public synchronized void rollbackIndexWriter ( SolrCore core ) throws IOException { <START_BUG> newIndexWriter ( core , true , true ) ; <END_BUG> } protected SolrIndexWriter createMainIndexWriter ( SolrCore core , String name , boolean forceNewDirectory ) throws IOException { } @ Override public DirectoryFactory getDirectoryFactory ( ) { } @ Override public void doRecovery ( CoreContainer cc , CoreDescriptor cd ) { } @ Override public void cancelRecovery ( ) { } @ Override public void recovered ( ) { } @ Override public void failed ( ) { } @ Override public synchronized void close ( IndexWriterCloser closer ) { } @ Override public Lock getCommitLock ( ) { } }

Fix:
newIndexWriter ( core , true , false ) ;
Buggy code:
public class AStarSearch < S , T > { protected SearchSpace < S , T > searchSpace ; protected Set < S > visited ; protected Queue < Node < S , T > > openQueue ; protected Map < S , Integer > pathCost ; protected volatile Node < S , T > solution ; protected long numTries ; public AStarSearch ( SearchSpace < S , T > searchSpace ) { } protected AStarSearch ( ) { } public List < T > solve ( ) { } protected Node < S , T > doSearch ( ) { } protected Node < S , T > search ( ) { while ( nodesAvailable ( ) ) { Node < S , T > currentNode = openQueue . remove ( ) ; S currentState = currentNode . getState ( ) ; searchSpace . refresh ( currentState , numTries ) ; if ( searchSpace . isGoal ( currentState ) ) { solution = currentNode ; return currentNode ; } visited . add ( currentState ) ; List < T > transitions = searchSpace . legalTransitions ( currentState ) ; for ( T transition : transitions ) { S nbr = searchSpace . transition ( currentState , transition ) ; int estPathCost = ( pathCost . get ( currentState ) ) + ( searchSpace . getCost ( transition ) ) ; if ( ( ! ( pathCost . containsKey ( nbr ) ) ) || ( estPathCost < ( pathCost . get ( nbr ) ) ) ) { int estFutureCost = estPathCost + ( searchSpace . distanceFromGoal ( nbr ) ) ; Node < S , T > child = new Node ( nbr , transition , currentNode , estPathCost , estFutureCost ) ; pathCost . put ( nbr , estPathCost ) ; <START_BUG> if ( ! ( openQueue . contains ( child ) ) ) { <END_BUG> openQueue . add ( child ) ; ( numTries ) ++ ; } } } } return null ; } protected boolean nodesAvailable ( ) { } }

Fix:
if ( ( ! ( visited . contains ( nbr ) ) ) && ( ! ( openQueue . contains ( child ) ) ) ) {
Buggy code:
public class TestSearch extends LuceneTestCase { public static void main ( String [ ] args ) { } public void testSearch ( ) throws Exception { } private void doTestSearch ( PrintWriter out , boolean useCompoundFile ) throws Exception { Directory directory = new RAMDirectory ( ) ; Analyzer analyzer = new SimpleAnalyzer ( ) ; IndexWriter writer = new IndexWriter ( directory , analyzer , true , MaxFieldLength . LIMITED ) ; writer . setUseCompoundFile ( useCompoundFile ) ; String [ ] docs = new String [ ] { "a<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>e" , "a<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>e<seq2seq4repair_space>a<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>e" , "a<seq2seq4repair_space>b<seq2seq4repair_space>c<seq2seq4repair_space>d<seq2seq4repair_space>e<seq2seq4repair_space>f<seq2seq4repair_space>g<seq2seq4repair_space>h<seq2seq4repair_space>i<seq2seq4repair_space>j" , "a<seq2seq4repair_space>c<seq2seq4repair_space>e" , "e<seq2seq4repair_space>c<seq2seq4repair_space>a" , "a<seq2seq4repair_space>c<seq2seq4repair_space>e<seq2seq4repair_space>a<seq2seq4repair_space>c<seq2seq4repair_space>e" , "a<seq2seq4repair_space>c<seq2seq4repair_space>e<seq2seq4repair_space>a<seq2seq4repair_space>b<seq2seq4repair_space>c" } ; for ( int j = 0 ; j < ( docs . length ) ; j ++ ) { Document d = new Document ( ) ; d . add ( new Field ( "contents" , docs [ j ] , Store . YES , Index . ANALYZED ) ) ; writer . addDocument ( d ) ; } writer . close ( ) ; Searcher searcher = new IndexSearcher ( directory , true ) ; String [ ] queries = new String [ ] { "a<seq2seq4repair_space>b" , "\"a<seq2seq4repair_space>b\"" , "\"a<seq2seq4repair_space>b<seq2seq4repair_space>c\"" , "a<seq2seq4repair_space>c" , "\"a<seq2seq4repair_space>c\"" , "\"a<seq2seq4repair_space>c<seq2seq4repair_space>e\"" } ; ScoreDoc [ ] hits = null ; <START_BUG> QueryParser parser = new QueryParser ( Version . LUCENE_CURRENT , "contents" , analyzer ) ; <END_BUG> parser . setPhraseSlop ( 4 ) ; for ( int j = 0 ; j < ( queries . length ) ; j ++ ) { Query query = parser . parse ( queries [ j ] ) ; out . println ( ( "Query:<seq2seq4repair_space>" + ( query . toString ( "contents" ) ) ) ) ; hits = searcher . search ( query , null , 1000 ) . scoreDocs ; out . println ( ( ( hits . length ) + "<seq2seq4repair_space>total<seq2seq4repair_space>results" ) ) ; for ( int i = 0 ; ( i < ( hits . length ) ) && ( i < 10 ) ; i ++ ) { Document d = searcher . doc ( hits [ i ] . doc ) ; out . println ( ( ( ( ( i + "<seq2seq4repair_space>" ) + ( hits [ i ] . score ) ) + "<seq2seq4repair_space>" ) + ( d . get ( "contents" ) ) ) ) ; } } searcher . close ( ) ; } static long Time ( int year , int month , int day ) { } }

Fix:
QueryParser parser = new QueryParser ( TEST_VERSION_CURRENT , "contents" , analyzer ) ;
Buggy code:
public final class KeepBestJustificationOnly { private static final Logger log = LoggerFactory . getLogger ( KeepBestJustificationOnly . class ) ; public static ResponseMapping computeResponseMapping ( SystemOutput input ) { } public static ResponseMapping computeResponseMappingUsingProvidedCoref ( SystemOutput input , CorefAnnotation corefAnnotation ) { } public static Function < SystemOutput , SystemOutput > asFunctionOnSystemOutput ( ) { } public static Function < SystemOutput , SystemOutput > asFunctionUsingCoref ( final CorefAnnotation corefAnnotation ) { } private static ResponseMapping computeResponseMapping ( SystemOutput input , Function < KBPString , KBPString > CASNormalizer ) { Preconditions . checkNotNull ( input ) ; final Function < Response , TypeRoleFillerRealis > trfrFunction = TypeRoleFillerRealis . extractFromSystemResponse ( CASNormalizer ) ; final ResponseLinking responseLinking = KeepBestJustificationOnly . getResponseLinking ( input ) ; final Set < Response > toKeep = Sets . newHashSet ( ) ; for ( final ResponseSet eventFrame : responseLinking . responseSets ( ) ) { <START_BUG> final Multimap < TypeRoleFillerRealis , Response > groupedResponses = Multimaps . index ( input . arguments ( ) . responses ( ) , trfrFunction ) ; <END_BUG> for ( final Map . Entry < TypeRoleFillerRealis , Collection < Response > > group : groupedResponses . asMap ( ) . entrySet ( ) ) { final Collection < Response > competitors = group . getValue ( ) ; final Scored < Response > selected = input . arguments ( ) . score ( input . arguments ( ) . selectFromMultipleSystemResponses ( competitors ) . get ( ) ) ; toKeep . add ( selected . item ( ) ) ; } } final ImmutableSet < Response > toDelete = Sets . difference ( input . arguments ( ) . responses ( ) , toKeep ) . immutableCopy ( ) ; KeepBestJustificationOnly . log . info ( "For<seq2seq4repair_space>document<seq2seq4repair_space>{},<seq2seq4repair_space>after<seq2seq4repair_space>keeping<seq2seq4repair_space>only<seq2seq4repair_space>selected<seq2seq4repair_space>justifications,<seq2seq4repair_space>deleted<seq2seq4repair_space>{}<seq2seq4repair_space>of<seq2seq4repair_space>{}<seq2seq4repair_space>responses" , input . docID ( ) , toDelete . size ( ) , input . arguments ( ) . size ( ) ) ; return ResponseMapping . create ( ImmutableMap . < Response , Response > of ( ) , toDelete ) ; } private static ResponseLinking getResponseLinking ( final SystemOutput input ) { } }

Fix:
final Multimap < TypeRoleFillerRealis , Response > groupedResponses = Multimaps . index ( eventFrame . asSet ( ) , trfrFunction ) ;
Buggy code:
@ SuppressWarnings ( { "nls" , "boxing" } ) public class Process extends CValidator { String ncName ; protected String fTypeName ; @ Override protected void start ( ) { } @ ARule ( sa = 0 , desc = "Check<seq2seq4repair_space>the<seq2seq4repair_space>NCName<seq2seq4repair_space>of<seq2seq4repair_space>the<seq2seq4repair_space>property" , author = "michal.chmielewski@oracle.com" , date = "02//15//2007" , errors = "BPELC__UNSET_ATTRIBUTE,General.NCName_Bad" ) public void rule_CheckName_1 ( ) { } @ ARule ( sa = 0 , desc = "Internal<seq2seq4repair_space>error:<seq2seq4repair_space>unsupported<seq2seq4repair_space>validation<seq2seq4repair_space>rule" , author = "michal.chmielewski@oracle.com" , date = "02//15//2007" , errors = "BPELC__UNSUPPORTED_VALIDATION" ) public void rule_ReportUnsupportedProcessVariant_5 ( ) { <START_BUG> IProblem problem = createError ( ) ; <END_BUG> problem . fill ( "BPELC__UNSUPPORTED_VALIDATION" , toString ( mNode . nodeName ( ) ) , ncName , mNode . nodeName ( ) . getNamespaceURI ( ) ) ; } }

Fix:
IProblem problem = createWarning ( ) ;
Buggy code:
public class ObjectsTest extends WicketTestCase { public ObjectsTest ( String name ) { } public void testEqual ( ) { } public void testCloneNull ( ) { } public void testCloneString ( ) { } public void testCloneObject ( ) { } public void testComponentClone ( ) { PropertyModel pm = new PropertyModel ( new wicket . markup . html . form . TextField ( "test" , new Model ( "test" ) ) , "modelObject" ) ; PropertyModel pm2 = ( ( PropertyModel ) ( Objects . cloneModel ( pm ) ) ) ; <START_BUG> assertTrue ( ( ( pm . getObject ( null ) ) == ( pm2 . getObject ( null ) ) ) ) ; <END_BUG> } public void testCloneCloneObject ( ) { } private static final class CloneObject implements Serializable { private static final long serialVersionUID = 1L ; private int nr ; public boolean equals ( Object o ) { } } }

Fix:
assertTrue ( ( ( pm . getObject ( ) ) == ( pm2 . getObject ( ) ) ) ) ;
Buggy code:
public class CollaborationsHelper { private CollaborationsHelper ( ) { } private static CollaborationsHelper SINGLETON = new CollaborationsHelper ( ) ; public static CollaborationsHelper getHelper ( ) { } public Collection getAllClassifierRoles ( ) { } public Collection getAllClassifierRoles ( MNamespace ns ) { } public Collection getAllPossibleAssociationRoles ( MClassifierRole role ) { } public Collection getClassifierRoles ( MClassifierRole role ) { } public MAssociationRole getAssocationRole ( MClassifierRole from , MClassifierRole to ) { } public Collection getAllPossibleActivators ( MMessage mes ) { <START_BUG> if ( mes == null ) <END_BUG> return new ArrayList ( ) ; MInteraction inter = mes . getInteraction ( ) ; Collection predecessors = mes . getPredecessors ( ) ; Collection allMessages = inter . getMessages ( ) ; Iterator it = allMessages . iterator ( ) ; List list = new ArrayList ( ) ; while ( it . hasNext ( ) ) { Object o = it . next ( ) ; if ( ( ( ( ! ( predecessors . contains ( o ) ) ) && ( mes != o ) ) && ( ! ( hasAsActivator ( ( ( MMessage ) ( o ) ) , mes ) ) ) ) && ( ! ( ( ( MMessage ) ( o ) ) . getPredecessors ( ) . contains ( mes ) ) ) ) { list . add ( o ) ; } } return list ; } public boolean hasAsActivator ( MMessage message , MMessage activator ) { } public void setActivator ( MMessage mes , MMessage activator ) { } public Collection getAllPossiblePredecessors ( MMessage message ) { } public Collection getAllPossibleBases ( MClassifierRole role ) { } public void addBase ( MClassifierRole role , MClassifier base ) { } public void setBases ( MClassifierRole role , Collection bases ) { } public Collection allAvailableFeatures ( MClassifierRole role ) { } public Collection allAvailableContents ( MClassifierRole role ) { } public Collection getAllPossibleBases ( MAssociationRole role ) { } public void setBase ( MAssociationRole role , MAssociation base ) { } }

Fix:
if ( ( mes == null ) || ( ( mes . getInteraction ( ) ) == null ) )
Buggy code:
public class FixturesTest { @ Rule public TestDirectory testDir = TargetDirectory . testDirForTest ( FixturesTest . class ) ; @ Rule public Mute mute = Mute . muteAll ( ) ; @ Test public void shouldAccepSingleCypherFileAsFixture ( ) throws Exception { } @ Test public void shouldAcceptFolderWithCypFilesAsFixtures ( ) throws Exception { } @ Test public void shouldHandleMultipleFixtures ( ) throws Exception { } @ Test public void shouldHandleStringFixtures ( ) throws Exception { } @ Test public void shouldIgnoreEmptyFixtureFiles ( ) throws Exception { } @ Test public void shouldHandleFixturesWithSyntaxErrorsGracefully ( ) throws Exception { File targetFolder = testDir . directory ( ) ; FileUtils . writeToFile ( new File ( targetFolder , "fixture1.cyp" ) , "this<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>cypher<seq2seq4repair_space>statement" , false ) ; try ( ServerControls ignore = TestServerBuilders . newInProcessBuilder ( targetFolder ) . withFixture ( targetFolder ) . newServer ( ) ) { TestCase . fail ( "Should<seq2seq4repair_space>have<seq2seq4repair_space>thrown<seq2seq4repair_space>exception" ) ; } catch ( RuntimeException e ) { <START_BUG> assertThat ( e . getMessage ( ) , equalTo ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>install<seq2seq4repair_space>fixtures:<seq2seq4repair_space>Invalid<seq2seq4repair_space>input<seq2seq4repair_space>'t':<seq2seq4repair_space>expected<seq2seq4repair_space><init><seq2seq4repair_space>" + "(line<seq2seq4repair_space>1,<seq2seq4repair_space>column<seq2seq4repair_space>1)\n\"this<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>cypher<seq2seq4repair_space>statement\"\n<seq2seq4repair_space>^" ) ) ) ; <END_BUG> } } }

Fix:
assertThat ( e . getMessage ( ) , equalTo ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>install<seq2seq4repair_space>fixtures:<seq2seq4repair_space>Invalid<seq2seq4repair_space>input<seq2seq4repair_space>'t':<seq2seq4repair_space>expected<seq2seq4repair_space><init><seq2seq4repair_space>" + "(line<seq2seq4repair_space>1,<seq2seq4repair_space>column<seq2seq4repair_space>1<seq2seq4repair_space>(offset:<seq2seq4repair_space>0))\n\"this<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>cypher<seq2seq4repair_space>statement\"\n<seq2seq4repair_space>^" ) ) ) ;
Buggy code:
public class SetClasspathOperation extends ChangeClasspathOperation { IClasspathEntry [ ] newRawClasspath ; IPath newOutputLocation ; JavaProject project ; public SetClasspathOperation ( JavaProject project , IClasspathEntry [ ] newRawClasspath , IPath newOutputLocation , boolean canChangeResource ) { } protected void executeOperation ( ) throws JavaModelException { checkCanceled ( ) ; try { JavaModelManager . PerProjectInfo perProjectInfo = this . project . getPerProjectInfo ( ) ; <START_BUG> ClasspathChange classpathChange = perProjectInfo . setClasspath ( this . newRawClasspath , this . newOutputLocation , JavaModelStatus . VERIFIED_OK , null , null , null , null ) ; <END_BUG> classpathChanged ( classpathChange ) ; if ( ( this . canChangeResources ) && ( perProjectInfo . writeAndCacheClasspath ( this . project , this . newRawClasspath , this . newOutputLocation ) ) ) JavaModelOperation . setAttribute ( JavaModelOperation . HAS_MODIFIED_RESOURCE_ATTR , JavaModelOperation . TRUE ) ; } finally { done ( ) ; } } public String toString ( ) { } public IJavaModelStatus verify ( ) { } }

Fix:
ClasspathChange classpathChange = perProjectInfo . setRawClasspath ( this . newRawClasspath , this . newOutputLocation , JavaModelStatus . VERIFIED_OK ) ;