nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Sash extends Control { Cursor sizeCursor ; boolean dragging ; int lastX ; int lastY ; int startX ; int startY ; private static final int INCREMENT = 1 ; private static final int PAGE_INCREMENT = 9 ; public Sash ( Composite parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } boolean becomeFirstResponder ( int id , int sel ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { <START_BUG> SWTView widget = ( ( SWTView ) ( new SWTView ( ) . alloc ( ) ) ) ; <END_BUG> widget . initWithFrame ( new NSRect ( ) ) ; view = widget ; } void drawRect ( int id , NSRect rect ) { } Cursor findCursor ( ) { } boolean sendKeyEvent ( NSEvent nsEvent , int type ) { } void mouseDown ( int id , int sel , int theEvent ) { } void mouseDragged ( int id , int sel , int theEvent ) { } void mouseUp ( int id , int sel , int theEvent ) { } void releaseWidget ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } int traversalCode ( int key , NSEvent theEvent ) { } }

Fix:
NSView widget = ( ( NSView ) ( new SWTView ( ) . alloc ( ) ) ) ;
Buggy code:
public final class ReferenceDictionaryBuilder { private final HashMap < String , Integer > tmpContigID = new HashMap < String , Integer > ( ) ; private final ImmutableMap . Builder < String , Integer > contigID = new ImmutableMap . Builder < String , Integer > ( ) ; private final HashMap < Integer , String > tmpContigName = new HashMap < Integer , String > ( ) ; private final ImmutableMap . Builder < Integer , String > contigName = new ImmutableMap . Builder < Integer , String > ( ) ; private final HashMap < Integer , Integer > tmpContigLength = new HashMap < Integer , Integer > ( ) ; private final ImmutableMap . Builder < Integer , Integer > contigLength = new ImmutableMap . Builder < Integer , Integer > ( ) ; public Integer getContigLength ( int id ) { } public void putContigLength ( int id , int length ) { } public String getContigName ( String name ) { } public void putContigName ( int id , String name ) { } public Integer getContigID ( String name ) { } public void putContigID ( String name , int id ) { <START_BUG> if ( ( getContigID ( "M" ) ) != null ) <END_BUG> return ; tmpContigID . put ( name , id ) ; contigID . put ( name , id ) ; } public ReferenceDictionary build ( ) { } }

Fix:
if ( ( getContigID ( name ) ) != null )
Buggy code:
public class Helper { public static final < T extends Number > T clamp ( final T MIN , final T MAX , final T VALUE ) { } public static final double [ ] calcAutoScale ( final double MIN_VALUE , final double MAX_VALUE ) { } public static final double calcNiceNumber ( final double RANGE , final boolean ROUND ) { } public static final Color getColorOfSection ( final List < Section > SECTIONS , final double VALUE , final Color DEFAULT_COLOR ) { } public static final void rotateContextForText ( final GraphicsContext CTX , final double START_ANGLE , final double ANGLE , final TickLabelOrientation ORIENTATION ) { } public static final void adjustTextSize ( final Text TEXT , final double MAX_WIDTH , double fontSize ) { final String FONT_NAME = TEXT . getFont ( ) . getName ( ) ; <START_BUG> while ( ( ( TEXT . getLayoutBounds ( ) . getWidth ( ) ) > MAX_WIDTH ) | ( fontSize < 0 ) ) { <END_BUG> fontSize -= 0.005 ; TEXT . setFont ( new Font ( FONT_NAME , fontSize ) ) ; } } public static final String colorToCss ( final Color COLOR ) { } public static final ThreadFactory getThreadFactory ( final String THREAD_NAME , final boolean IS_DAEMON ) { } public static final void stopTask ( ScheduledFuture < ? > task ) { } public static final ImagePattern createCarbonPattern ( ) { } public static void drawTriangle ( final GraphicsContext CTX , final double PI1X , final double PI1Y , final double PI2X , final double PI2Y , final double PO1X , final double PO1Y , final double PO2X , final double PO2Y ) { } public static void drawDot ( final GraphicsContext CTX , final double CENTER_X , final double CENTER_Y , final double SIZE ) { } public static void drawLine ( final GraphicsContext CTX , final double P1X , final double P1Y , final double P2X , final double P2Y ) { } }

Fix:
while ( ( ( TEXT . getLayoutBounds ( ) . getWidth ( ) ) > MAX_WIDTH ) && ( fontSize > 0 ) ) {
Buggy code:
public class IOSamples { private int SUPPLY_VOLTAGE ; private HashMap < Pin , Integer > analog ; private HashMap < Pin , Status > digital ; public IOSamples ( HashMap < Pin , Integer > analog , HashMap < Pin , Status > digital , int SUPPLY_VOLTAGE ) { } public HashMap < Pin , Integer > GetAnalogs ( ) { } public int GetAnalog ( Pin pin ) { } public Status GetDigital ( Pin pin ) { <START_BUG> if ( this . analog . containsKey ( pin ) ) <END_BUG> return ( ( Status ) ( digital . get ( pin ) ) ) ; return null ; } public HashMap < Pin , Status > GetDigitals ( ) { } public int GetSupplyVoltage ( ) { } No newline ; at end ; of file ; }

Fix:
if ( this . digital . containsKey ( pin ) )
Buggy code:
public class SuperTypeReferenceLocator extends PatternLocator { protected SuperTypeReferencePattern pattern ; public SuperTypeReferenceLocator ( SuperTypeReferencePattern pattern ) { } public int match ( TypeReference node , MatchingNodeSet nodeSet ) { } protected int matchContainer ( ) { } protected void matchReportReference ( ASTNode reference , IJavaElement element , Binding elementBinding , int accuracy , MatchLocator locator ) throws CoreException { } protected int referenceType ( ) { } public int resolveLevel ( ASTNode node ) { if ( ! ( node instanceof TypeReference ) ) return PatternLocator . IMPOSSIBLE_MATCH ; TypeReference typeRef = ( ( TypeReference ) ( node ) ) ; TypeBinding typeBinding = typeRef . resolvedType ; if ( typeBinding instanceof ArrayBinding ) typeBinding = ( ( ArrayBinding ) ( typeBinding ) ) . leafComponentType ; if ( typeBinding instanceof ProblemReferenceBinding ) typeBinding = ( ( ProblemReferenceBinding ) ( typeBinding ) ) . closestMatch ( ) ; <START_BUG> if ( typeBinding == null ) <END_BUG> return PatternLocator . INACCURATE_MATCH ; return resolveLevelForType ( this . pattern . superSimpleName , this . pattern . superQualification , typeBinding ) ; } public int resolveLevel ( Binding binding ) { } public String toString ( ) { } }

Fix:
if ( ( typeBinding == null ) || ( ! ( typeBinding . isValidBinding ( ) ) ) )
Buggy code:
public class AclPolicyRootResourceTest extends AbstractTestCaseWithTestApp { private static final Logger log = Logger . getLogger ( AclPolicyRootResourceTest . class ) ; @ BeforeClass public static void loadExtensions ( ) throws Exception { loadExtension ( "interceptor" , new InterceptorExtension ( ) , AclPolicyRootResourceTest . createInterceptorConfig ( ) ) ; <START_BUG> loadExtension ( "mongo" , new MongoExtension ( ) , JsonNodeFactory . instance . objectNode ( ) ) ; <END_BUG> loadExtension ( "mongo-internal" , new MongoInternalExtension ( ) , AclPolicyRootResourceTest . createMongoInternalConfig ( ) ) ; loadExtension ( "acl-policy" , new SecurityACLPolicyExtension ( ) ) ; loadExtension ( "mock-storage" , new MockExtension ( MockAclTestStorageResource . class ) ) ; installTestAppResource ( "acl-policy" , "acl-policy" , AclPolicyRootResourceTest . createPolicyConfig ( ) ) ; installTestAppResource ( "mock-storage" , "mock-storage" , JsonNodeFactory . instance . objectNode ( ) ) ; } private static ObjectNode createInterceptorConfig ( ) { } private static ObjectNode createPolicyConfig ( ) throws Exception { } private static ObjectNode createMongoInternalConfig ( ) { } @ Test public void aclPolicyTests ( ) throws Exception { } private void sendCreateRequest ( String collectionPath , String resourceId , String subject ) throws Exception { } private void assertAuthzDecision ( RequestContext reqCtxToCheck , AuthzDecision expectedDecision ) throws Exception { } }

Fix:
loadExtension ( "mongo" , new MongoExtension ( ) , JsonNodeFactory . instance . objectNode ( ) . put ( "name" , "default" ) ) ;
Buggy code:
public class ModelAttributeMethodProcessor implements HandlerMethodArgumentResolver , HandlerMethodReturnValueHandler { protected Log logger = LogFactory . getLog ( this . getClass ( ) ) ; private final boolean useDefaultResolution ; public ModelAttributeMethodProcessor ( boolean useDefaultResolution ) { } public boolean supportsParameter ( MethodParameter parameter ) { } public final Object resolveArgument ( MethodParameter parameter , ModelAndViewContainer mavContainer , NativeWebRequest request , WebDataBinderFactory binderFactory ) throws Exception { String name = ModelFactory . getNameForParameter ( parameter ) ; <START_BUG> Object target = ( mavContainer . containsAttribute ( name ) ) ? mavContainer . getAttribute ( name ) : createAttribute ( name , parameter , binderFactory , request ) ; <END_BUG> WebDataBinder binder = binderFactory . createBinder ( request , target , name ) ; if ( ( binder . getTarget ( ) ) != null ) { bindRequestParameters ( binder , request ) ; if ( isValidationApplicable ( binder . getTarget ( ) , parameter ) ) { binder . validate ( ) ; } if ( binder . getBindingResult ( ) . hasErrors ( ) ) { if ( isBindExceptionRequired ( binder , parameter ) ) { throw new org . springframework . validation . BindException ( binder . getBindingResult ( ) ) ; } } } mavContainer . addAllAttributes ( binder . getBindingResult ( ) . getModel ( ) ) ; return binder . getTarget ( ) ; } protected Object createAttribute ( String attributeName , MethodParameter parameter , WebDataBinderFactory binderFactory , NativeWebRequest request ) throws Exception { } protected void bindRequestParameters ( WebDataBinder binder , NativeWebRequest request ) { } protected boolean isValidationApplicable ( Object argumentValue , MethodParameter parameter ) { } protected boolean isBindExceptionRequired ( WebDataBinder binder , MethodParameter parameter ) { } public boolean supportsReturnType ( MethodParameter returnType ) { } public void handleReturnValue ( Object returnValue , MethodParameter returnType , ModelAndViewContainer mavContainer , NativeWebRequest webRequest ) throws Exception { } }

Fix:
Object target = ( mavContainer . containsAttribute ( name ) ) ? mavContainer . getModel ( ) . get ( name ) : createAttribute ( name , parameter , binderFactory , request ) ;
Buggy code:
public class ArgumentOutsideDomainExceptionTest extends TestCase { public void testConstructor ( ) { ArgumentOutsideDomainException ex = new ArgumentOutsideDomainException ( Math . PI , 10.0 , 20.0 ) ; assertNull ( ex . getCause ( ) ) ; assertNotNull ( ex . getMessage ( ) ) ; assertTrue ( ( ( ex . getMessage ( ) . indexOf ( "3.14" ) ) > 0 ) ) ; <START_BUG> assertEquals ( Math . PI , ex . getArgument ( ) , 0 ) ; <END_BUG> assertFalse ( ex . getMessage ( ) . equals ( ex . getMessage ( Locale . FRENCH ) ) ) ; } }

Fix:
assertEquals ( Math . PI , ex . getArgument ( ) [ 0 ] , 0 ) ;
Buggy code:
public class TLogger { public static final TString GLOBAL_LOGGER_NAME = TString . wrap ( "global" ) ; private static TMap < TString , TLogger > loggerCache = new org . teavm . classlib . java . util . THashMap ( ) ; private TString name ; private TLogger parent ; TLogger ( TString name ) { } public static TLogger getLogger ( TString name ) { } public static TLogger getAnonymousLogger ( ) { } public void log ( TLogRecord record ) { } private TString format ( TString message , Object [ ] params ) { if ( params == null ) { return message ; } TStringBuilder sb = new TStringBuilder ( ) ; int index = 0 ; while ( index < ( message . length ( ) ) ) { int next = message . indexOf ( '{' , index ) ; if ( next < 0 ) { break ; } int paramStart = next + 1 ; next = TLogger . digits ( paramStart , message ) ; if ( next < 0 ) { break ; } if ( ( message . charAt ( next ) ) != '}' ) { sb . append ( message . substring ( index , next ) ) ; index = next ; continue ; } <START_BUG> int paramIndex = TInteger . parseInt ( message . substring ( index , ( next - 1 ) ) ) ; <END_BUG> if ( paramIndex >= ( params . length ) ) { sb . append ( message . substring ( index , next ) ) ; index = next ; continue ; } sb . append ( TObject . wrap ( params [ paramIndex ] ) ) ; index = next + 1 ; } return TString . wrap ( sb . toString ( ) ) ; } private static int digits ( int from , TString message ) { } public void log ( TLevel level , TString msg , Object [ ] params ) { } public void log ( TLevel level , TString msg ) { } public void log ( TLevel level , TString msg , TObject param1 ) { } public void log ( TLevel level , TString msg , TThrowable thrown ) { } public void severe ( TString msg ) { } public void warning ( TString msg ) { } public void config ( TString msg ) { } public void fine ( TString msg ) { } public void finer ( TString msg ) { } public void finest ( TString msg ) { } public boolean isLoggable ( @ SuppressWarnings ( "unused" ) TLevel level ) { } public TString getName ( ) { } public TLogger getParent ( ) { } public void setParent ( TLogger parent ) { } @ GeneratedBy ( LoggerNativeGenerator . class ) public native void info ( TString message ) { } @ GeneratedBy ( LoggerNativeGenerator . class ) private native void warn ( TString message ) { } @ GeneratedBy ( LoggerNativeGenerator . class ) private native void error ( TString message ) { } }

Fix:
int paramIndex = TInteger . parseInt ( message . substring ( paramStart , next ) ) ;
Buggy code:
public class IntLiteral extends NumberLiteral { public int value ; public static final IntLiteral One = new IntLiteral ( new char [ ] { '1' } , 0 , 0 , 1 ) ; static final Constant FORMAT_ERROR = new DoubleConstant ( ( 1.0 // 0.0 ) ) ; public IntLiteral ( char [ ] token , int s , int e ) { } public IntLiteral ( char [ ] token , int s , int e , int value ) { } public IntLiteral ( int intValue ) { } public void computeConstant ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public TypeBinding literalType ( BlockScope scope ) { <START_BUG> return IntBinding ; <END_BUG> } public final boolean mayRepresentMIN_VALUE ( ) { } public TypeBinding resolveType ( BlockScope scope ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
return TypeBinding . INT ;
Buggy code:
public interface JDBCQueryCommand { Collection execute ( Method finderMethod , Object [ ] args , CmpEntityBeanContext ctx , JDBCQueryCommand . EntityProxyFactory factory ) throws FinderException { } JDBCStoreManager getSelectManager ( ) { } interface EntityProxyFactory { Object getEntityObject ( final Object primaryKey ) { } class Util { static Collection < Object > getEntityCollection ( final JDBCQueryCommand . EntityProxyFactory factory , final Collection < Object > ids ) { List < Object > result = new ArrayList < Object > ( ) ; if ( ! ( ids . isEmpty ( ) ) ) { for ( Object id : ids ) { <START_BUG> result . add ( factory . getEntityObject ( id ) ) ; <END_BUG> } } return result ; } } } }

Fix:
result . add ( ( id != null ? factory . getEntityObject ( id ) : null ) ) ;
Buggy code:
public class MenuLocationURI { private String rawString ; public MenuLocationURI ( String uriDef ) { } public String getQuery ( ) { } public String getScheme ( ) { } public String getPath ( ) { } public String toString ( ) { } <START_BUG> public Object getRawString ( ) { <END_BUG> return rawString ; } }

Fix:
public String getRawString ( ) {
Buggy code:
public class JmsMapMessage extends JmsMessage implements MapMessage { JmsMapMessageFacade facade ; public JmsMapMessage ( JmsMapMessageFacade facade ) { } @ Override public JmsMapMessage copy ( ) throws JMSException { } @ Override public void clearBody ( ) throws JMSException { } @ Override public boolean getBoolean ( String name ) throws JMSException { } @ Override public byte getByte ( String name ) throws JMSException { } @ Override public short getShort ( String name ) throws JMSException { } @ Override public char getChar ( String name ) throws JMSException { Object value = getObject ( name ) ; if ( value == null ) { throw new NullPointerException ( ) ; } else if ( value instanceof Character ) { return ( ( Character ) ( value ) ) . charValue ( ) ; } else { <START_BUG> throw new MessageFormatException ( ( "Cannot<seq2seq4repair_space>read<seq2seq4repair_space>a<seq2seq4repair_space>short<seq2seq4repair_space>from<seq2seq4repair_space>" + ( value . getClass ( ) . getSimpleName ( ) ) ) ) ; <END_BUG> } } @ Override public int getInt ( String name ) throws JMSException { } @ Override public long getLong ( String name ) throws JMSException { } @ Override public float getFloat ( String name ) throws JMSException { } @ Override public double getDouble ( String name ) throws JMSException { } @ Override public String getString ( String name ) throws JMSException { } @ Override public byte [ ] getBytes ( String name ) throws JMSException { } @ Override public Object getObject ( String name ) throws JMSException { } @ Override public Enumeration < String > getMapNames ( ) throws JMSException { } @ Override public void setBoolean ( String name , boolean value ) throws JMSException { } @ Override public void setByte ( String name , byte value ) throws JMSException { } @ Override public void setShort ( String name , short value ) throws JMSException { } @ Override public void setChar ( String name , char value ) throws JMSException { } @ Override public void setInt ( String name , int value ) throws JMSException { } @ Override public void setLong ( String name , long value ) throws JMSException { } @ Override public void setFloat ( String name , float value ) throws JMSException { } @ Override public void setDouble ( String name , double value ) throws JMSException { } @ Override public void setString ( String name , String value ) throws JMSException { } @ Override public void setBytes ( String name , byte [ ] value ) throws JMSException { } @ Override public void setBytes ( String name , byte [ ] value , int offset , int length ) throws JMSException { } @ Override public void setObject ( String name , Object value ) throws JMSException { } @ Override public boolean itemExists ( String name ) throws JMSException { } @ Override public String toString ( ) { } private void put ( String name , Object value ) throws JMSException { } private void checkKeyNameIsValid ( String name ) throws IllegalArgumentException { } }

Fix:
throw new MessageFormatException ( ( "Cannot<seq2seq4repair_space>read<seq2seq4repair_space>a<seq2seq4repair_space>char<seq2seq4repair_space>from<seq2seq4repair_space>" + ( value . getClass ( ) . getSimpleName ( ) ) ) ) ;
Buggy code:
public class DatabaseSettingsPanel extends JPanel { private BaseFrame baseFrame ; public DatabaseSettingsPanel ( ) { } public DatabaseSettingsPanel ( BaseFrame baseFrame , boolean showTitle ) { } private void loadData ( ) { } private void clearData ( ) { } private boolean validateDbName ( ) { } private boolean validateUserName ( ) { } private boolean validatePassword ( ) { } private boolean validateData ( ) { } private void validateDatabaseName ( ) { } private void validateServerUserName ( ) { } private void validateServerPassword ( ) { } private void btnCreateActionPerformed ( ) { } private void btnConnectActionPerformed ( ) { } private void moveToSignInPage ( ) { if ( ( baseFrame ) != null ) { <START_BUG> CacheObject . setupCache ( ) ; <END_BUG> baseFrame . slideCard ( SIGN_IN_PAGE ) ; } } private void initComponents ( ) { } private TitlePanel pnlTitle ; private JLabel lblConnectionName ; private JTextFieldDefaultText txtDatabaseName ; private JLabel lblDatabaseNameError ; private JTextFieldDefaultText txtServerUserName ; private JLabel lblUserNameError ; private JPasswordFieldDefaultText txtServerPassword ; private JLabel lblPasswordError ; }

Fix:
CacheObject . reset ( ) ;
Buggy code:
public class Test { public static void gen ( ) { } public static void test ( ) { } public static void main ( final String [ ] args ) { ServerConfiguration . getInstance ( ) . loadConfig ( "//lemo" ) ; <START_BUG> Test . test ( ) ; <END_BUG> } }

Fix:
Test . gen ( ) ;
Buggy code:
class DetachedStateAttachStrategy extends AttachStrategy { private static final Localizer _loc = Localizer . forPackage ( DetachedStateAttachStrategy . class ) ; protected Object getDetachedObjectId ( AttachManager manager , Object toAttach ) { if ( toAttach == null ) return null ; PersistenceCapable pc = ( ( PersistenceCapable ) ( toAttach ) ) ; Broker broker = manager . getBroker ( ) ; <START_BUG> ClassMetaData meta = broker . getConfiguration ( ) . getMetaDataRepository ( ) . getMetaData ( toAttach . getClass ( ) , broker . getClassLoader ( ) , true ) ; <END_BUG> switch ( meta . getIdentityType ( ) ) { case ClassMetaData . ID_DATASTORE : Object [ ] state = ( ( Object [ ] ) ( pc . pcGetDetachedState ( ) ) ) ; if ( state == null ) return null ; return broker . newObjectId ( toAttach . getClass ( ) , ( ( String ) ( state [ 0 ] ) ) ) ; case ClassMetaData . ID_APPLICATION : return ApplicationIds . create ( pc , meta ) ; default : throw new InternalException ( ) ; } } protected void provideField ( Object toAttach , StateManagerImpl sm , int field ) { } public Object attach ( AttachManager manager , Object toAttach , ClassMetaData meta , PersistenceCapable into , OpenJPAStateManager owner , ValueMetaData ownerMeta ) { } }

Fix:
ClassMetaData meta = broker . getConfiguration ( ) . getMetaDataRepositoryInstance ( ) . getMetaData ( toAttach . getClass ( ) , broker . getClassLoader ( ) , true ) ;
Buggy code:
public class RecoveredInitializer extends RecoveredField implements BaseTypes , CompilerModifiers , TerminalTokens { public RecoveredType [ ] localTypes ; public int localTypeCount ; public RecoveredBlock initializerBody ; public RecoveredInitializer ( FieldDeclaration fieldDeclaration , RecoveredElement parent , int bracketBalance ) { } public RecoveredInitializer ( FieldDeclaration fieldDeclaration , RecoveredElement parent , int bracketBalance , Parser parser ) { } public RecoveredElement add ( Block nestedBlockDeclaration , int bracketBalanceValue ) { } public RecoveredElement add ( FieldDeclaration newFieldDeclaration , int bracketBalanceValue ) { } public RecoveredElement add ( LocalDeclaration localDeclaration , int bracketBalanceValue ) { } public RecoveredElement add ( Statement statement , int bracketBalanceValue ) { } public RecoveredElement add ( TypeDeclaration typeDeclaration , int bracketBalanceValue ) { } public String toString ( int tab ) { StringBuffer result = new StringBuffer ( tabString ( tab ) ) ; result . append ( "Recovered<seq2seq4repair_space>initializer:\n" ) ; <START_BUG> result . append ( this . fieldDeclaration . print ( ( tab + 1 ) , result ) ) ; <END_BUG> if ( ( this . initializerBody ) != null ) { result . append ( "\n" ) ; result . append ( this . initializerBody . toString ( ( tab + 1 ) ) ) ; } return result . toString ( ) ; } public FieldDeclaration updatedFieldDeclaration ( ) { } public RecoveredElement updateOnClosingBrace ( int braceStart , int braceEnd ) { } public RecoveredElement updateOnOpeningBrace ( int braceStart , int braceEnd ) { } public void updateSourceEndIfNecessary ( int braceStart , int braceEnd ) { } }

Fix:
this . fieldDeclaration . print ( ( tab + 1 ) , result ) ;
Buggy code:
@ ClearInterceptor public class LoginController extends Controller { @ Before ( LoginValidator . class ) public void login ( ) { } public void logout ( ) { setAttr ( "loginMsg" , "You<seq2seq4repair_space>have<seq2seq4repair_space>logout<seq2seq4repair_space>success<seq2seq4repair_space>!" ) ; <START_BUG> render ( "login" ) ; <END_BUG> } }

Fix:
redirect ( "//login//login" ) ;
Buggy code:
public class FacebookAPIFile extends FacebookAPI { public FacebookAPIFile ( ) { } @ Override public List < FBEvent > getAllEventsForUser ( ) { } @ Override public void RSVPtoEvent ( String eventID , RSVPStatus status ) { } @ Override public FBEvent getEvent ( String eventID ) { } @ Override public FBEventDetails getEventDetails ( String eventID ) { } @ Override public FBEvent getNewEventForUser ( ) { Random random = new Random ( ) ; <START_BUG> FBEvent event = new FBEvent ( ( "" + ( random . nextInt ( 123456 ) ) ) , "Test<seq2seq4repair_space>Event" , "Right<seq2seq4repair_space>here" , new Date ( System . currentTimeMillis ( ) ) , new Date ( ( ( System . currentTimeMillis ( ) ) + 1234567890 ) ) , "Europe//UK" , RSVPStatus . UNSURE ) ; <END_BUG> events . put ( event . getId ( ) , event ) ; if ( ( listener ) != null ) listener . onDataChange ( ) ; return event ; } private Map < String , FBEvent > readEvents ( ) { } private String loadJSONFromAsset ( String filename ) { } private Map < String , FBEvent > parseEvents ( String json ) { } private Map < String , FBEventDetails > parseEventDetails ( String json ) { } private FBEventVenue toEventVenue ( JSONObject venue ) { } private RSVPStatus convertToStatus ( String status ) { } private static Date toUtilDate ( String dateString ) { } }

Fix:
FBEvent event = new FBEvent ( ( "" + ( random . nextInt ( 123456 ) ) ) , "House<seq2seq4repair_space>Party" , "Right<seq2seq4repair_space>here" , new Date ( System . currentTimeMillis ( ) ) , new Date ( ( ( System . currentTimeMillis ( ) ) + 1234567890 ) ) , "Europe//UK" , RSVPStatus . UNSURE ) ;
Buggy code:
public class TableColumn extends Item { static final int IMAGE_PART = 0 ; static final int TEXT_PART = 1 ; int headerHandle ; int stringPtr ; boolean moveable ; boolean resizable ; Table parent ; public TableColumn ( Table parent , int style ) { } public TableColumn ( Table parent , int style , int index ) { } public void addControlListener ( ControlListener listener ) { } public void addSelectionListener ( SelectionListener listener ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } void createHandle ( ) { } void deregister ( ) { } void destroyWidget ( ) { parent . destroyItem ( this ) ; <START_BUG> super . destroyWidget ( ) ; <END_BUG> } int GetBackground ( int itemHandle ) { } int GetCheck ( int itemHandle ) { } int GetFont ( int itemHandle ) { } int GetForeground ( int itemHandle ) { } int GetImage ( int itemHandle ) { } int GetText ( int itemHandle ) { } public int getAlignment ( ) { } String getNameText ( ) { } public Table getParent ( ) { } public boolean getMoveable ( ) { } public boolean getResizable ( ) { } public String getToolTipText ( ) { } public int getWidth ( ) { } int findPart ( int part ) { } int findStackPanel ( int element , int contentPresenterType ) { } public void pack ( ) { } void releaseHandle ( ) { } void register ( ) { } public void removeControlListener ( ControlListener listener ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setAlignment ( int alignment ) { } public void setImage ( Image image ) { } public void setMoveable ( boolean moveable ) { } public void setResizable ( boolean resizable ) { } void setSortDirection ( int direction ) { } public void setText ( String string ) { } public void setToolTipText ( String string ) { } public void setWidth ( int width ) { } }

Fix:
releaseHandle ( ) ;
Buggy code:
public class ExpensiveSubscription extends RegularUser { public ExpensiveSubscription ( HttpServletRequest request ) { } public ExpensiveSubscription ( ResultSet rs ) throws SQLException , ParseException { } public ExpensiveSubscription ( String username , String password , String firstName , String lastName , String emailAddress , Date lastLogin ) { } public ExpensiveSubscription ( JSONObject json ) { } public String asXml ( ) { } public String asSql ( ) { } public String asSqlUpdate ( ) { } public JSONObject asJSON ( ) { JSONObject obj = new JSONObject ( ) ; obj . put ( "username" , username ) ; obj . put ( "password" , password ) ; obj . put ( "firstName" , firstName ) ; obj . put ( "lastName" , lastName ) ; obj . put ( "emailAddress" , emailAddress ) ; <START_BUG> obj . put ( "lastLogin" , lastLogin ) ; <END_BUG> obj . put ( "type" , "expensiveSubscription" ) ; return obj ; } }

Fix:
obj . put ( "lastLogin" , lastLogin . toString ( ) ) ;
Buggy code:
public class ModemService extends Service { public static final String TAG = ModemService . class . getSimpleName ( ) ; private final IBinder mBinder = new ModemService . ModemBinder ( ) ; private MicrophoneListener microphoneListener = null ; private StreamDecoder sDecoder = null ; private ByteArrayOutputStream decodedStream = new ByteArrayOutputStream ( ) ; private int modemTimeout = - 1 ; private int timeoutCounter = - 1 ; public class ModemBinder extends Binder { public ModemService getService ( ) { } } @ Override public IBinder onBind ( Intent intent ) { } @ Override public int onStartCommand ( Intent intent , int flags , int startId ) { } @ Override public void onDestroy ( ) { } public String getBacklogStatus ( ) { } public String getReceivedText ( ) { } public boolean isListening ( ) { } public void listen ( ) { } public void stopListening ( ) { } public long playData ( String input , boolean compress , boolean fec ) { stopListening ( ) ; long millisPlayTime = - 1 ; try { Log . d ( ModemService . TAG , ( "Playing:<seq2seq4repair_space>" + input ) ) ; <START_BUG> AudioUtils . performString ( input , compress , fec ) ; <END_BUG> millisPlayTime = ( ( long ) ( ( ( ( ( ( ( Constants . kPlayJitter ) + ( Constants . kDurationsPerHail ) ) + ( ( Constants . kBytesPerDuration ) * ( input . length ( ) ) ) ) + ( Constants . kDurationsPerCRC ) ) * ( Constants . kSamplesPerDuration ) ) // ( Constants . kSamplingFrequency ) ) * 1000 ) ) ; } catch ( Exception e ) { System . out . println ( ( ( ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>encode<seq2seq4repair_space>" + input ) + "<seq2seq4repair_space>because<seq2seq4repair_space>of<seq2seq4repair_space>" ) + e ) ) ; } return millisPlayTime ; } }

Fix:
AudioUtils . performString ( getApplication ( ) , input , compress , fec ) ;
Buggy code:
public class Descriptions { static final String RESOURCE_NAME = ( Descriptions . class . getPackage ( ) . getName ( ) ) + ".LocalDescriptions" ; static ModelNode getSubsystem ( Locale locale ) { } static ModelNode getRecoveryEnvironmentDescription ( Locale locale ) { } static ModelNode getCoreEnvironmentDescription ( Locale locale ) { } static ModelNode getObjectStoreDescription ( Locale locale ) { } static ModelNode getCoordinatorEnvironmentDescription ( Locale locale ) { final ResourceBundle bundle = Descriptions . getResourceBundle ( locale ) ; final ModelNode coordinatorEnvModelNode = new ModelNode ( ) ; coordinatorEnvModelNode . get ( DESCRIPTION ) . set ( bundle . getString ( "coordinator-environment" ) ) ; coordinatorEnvModelNode . get ( HEAD_COMMENT_ALLOWED ) . set ( true ) ; coordinatorEnvModelNode . get ( TAIL_COMMENT_ALLOWED ) . set ( true ) ; coordinatorEnvModelNode . get ( NAMESPACE ) . set ( TRANSACTIONS_1_0 . getUriString ( ) ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_STATISTICS , DESCRIPTION ) . set ( bundle . getString ( "coordinator-environment.enable-statistics" ) ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_STATISTICS , TYPE ) . set ( BOOLEAN ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_STATISTICS , REQUIRED ) . set ( false ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_STATISTICS , DEFAULT ) . set ( true ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_TSM_STATUS , DESCRIPTION ) . set ( bundle . getString ( "coordinator-environment.enable-tsm-status" ) ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_TSM_STATUS , TYPE ) . set ( BOOLEAN ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_TSM_STATUS , REQUIRED ) . set ( false ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , ENABLE_TSM_STATUS , DEFAULT ) . set ( false ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , DEFAULT_TIMEOUT , DESCRIPTION ) . set ( bundle . getString ( "coordinator-environment.default-timeout" ) ) ; <START_BUG> coordinatorEnvModelNode . get ( ATTRIBUTES , DEFAULT_TIMEOUT , TYPE ) . set ( BOOLEAN ) ; <END_BUG> coordinatorEnvModelNode . get ( ATTRIBUTES , DEFAULT_TIMEOUT , REQUIRED ) . set ( false ) ; coordinatorEnvModelNode . get ( ATTRIBUTES , DEFAULT_TIMEOUT , DEFAULT ) . set ( 300 ) ; return coordinatorEnvModelNode ; } static ModelNode getSubsystemAdd ( Locale locale ) { } static ModelNode getObjectStoreAddDescription ( Locale locale ) { } static ModelNode getRecoveryEnvironmentAddDescription ( Locale locale ) { } static ModelNode getCoreEnvironmentAddDescription ( Locale locale ) { } static ModelNode getCoordinatorEnvironmentAddDescription ( Locale locale ) { } static ModelNode getRecoveryEnvironmentRemoveDescription ( Locale locale ) { } static ModelNode getCoreEnvironmentRemoveDescription ( Locale locale ) { } static ModelNode getCoordiantorEnvironmentRemoveDescription ( Locale locale ) { } static ModelNode getObjectStoreRemoveDescription ( Locale locale ) { } private static ResourceBundle getResourceBundle ( Locale locale ) { } }

Fix:
coordinatorEnvModelNode . get ( ATTRIBUTES , DEFAULT_TIMEOUT , TYPE ) . set ( INT ) ;
Buggy code:
public abstract class DeploymentRemoveHandler implements OperationStepHandler { public static final String OPERATION_NAME = REMOVE ; private DeploymentRemoveHandler ( ) { } public static DeploymentRemoveHandler createForSlave ( DeploymentFileRepository fileRepository ) { } public static DeploymentRemoveHandler createForMaster ( ContentRepository contentRepository ) { } public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { } protected void checkCanRemove ( OperationContext context , ModelNode operation ) throws OperationFailedException { final String deploymentName = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) . getLastElement ( ) . getValue ( ) ; <START_BUG> final Resource root = context . getRootResource ( ) ; <END_BUG> if ( root . hasChild ( PathElement . pathElement ( SERVER_GROUP ) ) ) { final List < String > badGroups = new ArrayList < String > ( ) ; for ( final Resource . ResourceEntry entry : root . getChildren ( SERVER_GROUP ) ) { if ( entry . hasChild ( PathElement . pathElement ( DEPLOYMENT , deploymentName ) ) ) { badGroups . add ( entry . getName ( ) ) ; } } if ( ( badGroups . size ( ) ) > 0 ) { throw new OperationFailedException ( new ModelNode ( ) . set ( DomainControllerMessages . MESSAGES . cannotRemoveDeploymentInUse ( deploymentName , badGroups ) ) ) ; } } } abstract void removeContent ( String name , List < byte [ ] > hashes ) { } private static class MasterDeploymentRemoveHandler extends DeploymentRemoveHandler { final ContentRepository contentRepository ; private MasterDeploymentRemoveHandler ( ContentRepository contentRepository ) { } @ Override void removeContent ( String name , List < byte [ ] > hashes ) { } } private static class SlaveDeploymentRemoveHandler extends DeploymentRemoveHandler { final DeploymentFileRepository fileRepository ; private SlaveDeploymentRemoveHandler ( final DeploymentFileRepository fileRepository ) { } @ Override void removeContent ( String name , List < byte [ ] > hashes ) { } } }

Fix:
final Resource root = context . readResourceFromRoot ( EMPTY_ADDRESS ) ;
Buggy code:
public class Vector extends Layer { private List < VectorFeatureDataLoadedListener > dataLoadedListeners = new ArrayList < VectorFeatureDataLoadedListener > ( ) ; private List < VectorFeaturesLoadedListener > loadedListeners = new ArrayList < VectorFeaturesLoadedListener > ( ) ; private Style style ; private ClusterStyle clusterStyle ; public Vector ( Source source ) { } public Vector ( Source source , Style style ) { } public Vector ( Source source , ClusterStyle clusterStyle ) { } private Vector ( Source source , Style style , ClusterStyle clusterStyle ) { } public Style getStyle ( ) { } public void setStyle ( Style style ) { } public Vector style ( Style style ) { } public Vector addFeatureDataLoadedListener ( VectorFeatureDataLoadedListener listener ) { } public Vector removeFeatureDataLoadedListener ( VectorFeatureDataLoadedListener listener ) { } public Vector addFeaturesLoadedListener ( VectorFeaturesLoadedListener listener ) { } public Vector removeFeaturesLoadedListener ( VectorFeaturesLoadedListener listener ) { } public List < VectorFeatureDataLoadedListener > getFeatureDataLoadedListeners ( ) { } public List < VectorFeaturesLoadedListener > getFeaturesLoadedListeners ( ) { } public void notifyFeatureDataLoadedListeners ( AjaxRequestTarget target , JsonArray features ) { } public void notifyFeaturesLoadedListeners ( AjaxRequestTarget target ) { } @ Override public Vector source ( Source source ) { } @ Override public String getJsType ( ) { } @ Override public String renderJs ( ) { StringBuilder builder = new StringBuilder ( ) ; builder . append ( "{" ) ; <START_BUG> builder . append ( ( ( "'id':<seq2seq4repair_space>'" + ( getJsId ( ) ) ) + "'," ) ) ; <END_BUG> if ( ( getSource ( ) ) instanceof ServerVector ) { builder . append ( ( ( "'source':<seq2seq4repair_space>" + ( getSource ( ) . getJsId ( ) ) ) + "," ) ) ; } else { builder . append ( ( ( "'source':<seq2seq4repair_space>new<seq2seq4repair_space>" + ( getSource ( ) . getJsType ( ) ) ) + "(" ) ) ; builder . append ( getSource ( ) . renderJs ( ) ) ; builder . append ( ")," ) ; } if ( ( style ) != null ) { builder . append ( ( ( "'style':<seq2seq4repair_space>new<seq2seq4repair_space>" + ( getStyle ( ) . getJsType ( ) ) ) + "(" ) ) ; builder . append ( getStyle ( ) . renderJs ( ) ) ; builder . append ( ")," ) ; } if ( ( clusterStyle ) != null ) { builder . append ( "'style':<seq2seq4repair_space>" ) ; builder . append ( clusterStyle . renderJs ( ) ) ; builder . append ( "," ) ; } builder . append ( "}" ) ; return builder . toString ( ) ; } }

Fix:
builder . append ( ( ( "\'id\':<seq2seq4repair_space>\"" + ( getJsId ( ) ) ) + "\"," ) ) ;
Buggy code:
public class Main2Activity extends BaseColorActivity implements ViewPager . OnPageChangeListener , View . OnClickListener { private SmartTabLayout mPagerTab ; private ViewPager mViewPager ; private Main2Activity . FragmentAdapter mAdapter ; private FloatingActionButton mFab ; @ Override protected int getLayoutRes ( ) { } @ Override public boolean showToolBar ( ) { } @ Override protected void findViews ( ) { } private void attachFab ( ) { BaseRecycleViewNetFragment fragment = ( ( BaseRecycleViewNetFragment ) ( mAdapter . getItem ( mViewPager . getCurrentItem ( ) ) ) ) ; <START_BUG> mFab . attachToRecyclerView ( fragment . getRecycleView ( ) ) ; <END_BUG> } @ Override public void onClick ( View v ) { } @ Override public void onPageScrolled ( int position , float positionOffset , int positionOffsetPixels ) { } @ Override public void onPageSelected ( int position ) { } @ Override public void onPageScrollStateChanged ( int state ) { } private class FragmentAdapter extends FragmentPagerAdapter { public FragmentAdapter ( FragmentManager fm ) { } @ Override public CharSequence getPageTitle ( int position ) { } @ Override public Fragment getItem ( int position ) { } @ Override public int getCount ( ) { } } }

Fix:
mFab . attachToRecyclerView ( fragment . getRecycleView ( ) , null , fragment . getOnScrollListener ( ) ) ;
Buggy code:
public class LidoMainSubjectDetectionRule implements MainSubjectDetectionRule < Element , String > { @ Autowired private XPath xpath ; @ Autowired private Cache cache ; @ Override public String computeFrom ( final Element input , final JobInstance configuration ) throws UnableToProceedWithConversionException { try { final String lidoRecId = xpath . value ( "lidoRecID" , input ) ; if ( isNullOrEmpty ( lidoRecId ) ) { throw new UnableToProceedWithConversionException ( "Unable<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>a<seq2seq4repair_space>record<seq2seq4repair_space>ID." ) ; } <START_BUG> final StringBuilder builder = new StringBuilder ( configuration . getNamespace ( ) ) . append ( "id//resource//" ) ; <END_BUG> String clazzURI = null ; String uri = cache . getAliadaClassFrom ( clazzURI ) ; int indexOfLocalName = uri . lastIndexOf ( "//" ) ; return builder . append ( uri . substring ( ( indexOfLocalName + 1 ) ) ) . append ( "//" ) . append ( lidoRecId ) . toString ( ) ; } catch ( XPathExpressionException exception ) { throw new UnableToProceedWithConversionException ( exception ) ; } } }

Fix:
final StringBuilder builder = new StringBuilder ( configuration . getNamespace ( ) ) ;
Buggy code:
public class SSTableNamesIterator extends SimpleAbstractColumnIterator implements IColumnIterator { private static Logger logger = LoggerFactory . getLogger ( SSTableNamesIterator . class ) ; private ColumnFamily cf ; private Iterator < IColumn > iter ; public final SortedSet < ByteBuffer > columns ; public final DecoratedKey key ; public SSTableNamesIterator ( SSTableReader sstable , DecoratedKey key , SortedSet < ByteBuffer > columns ) { } public SSTableNamesIterator ( SSTableReader sstable , FileDataInput file , DecoratedKey key , SortedSet < ByteBuffer > columns ) { } private void read ( SSTableReader sstable , FileDataInput file ) throws IOException { } private void readSimpleColumns ( FileDataInput file , SortedSet < ByteBuffer > columnNames , List < ByteBuffer > filteredColumnNames ) throws IOException { } private void readIndexedColumns ( CFMetaData metadata , FileDataInput file , SortedSet < ByteBuffer > columnNames , List < ByteBuffer > filteredColumnNames , List < IndexHelper . IndexInfo > indexList ) throws IOException { file . readInt ( ) ; AbstractType comparator = metadata . comparator ; <START_BUG> SortedSet < IndexHelper . IndexInfo > ranges = new TreeSet < IndexHelper . IndexInfo > ( IndexHelper . getComparator ( comparator ) ) ; <END_BUG> for ( ByteBuffer name : filteredColumnNames ) { int index = IndexHelper . indexFor ( name , indexList , comparator , false ) ; if ( index == ( indexList . size ( ) ) ) continue ; IndexHelper . IndexInfo indexInfo = indexList . get ( index ) ; if ( ( comparator . compare ( name , indexInfo . firstName ) ) < 0 ) continue ; ranges . add ( indexInfo ) ; } FileMark mark = file . mark ( ) ; for ( IndexHelper . IndexInfo indexInfo : ranges ) { file . reset ( mark ) ; long curOffsert = file . skipBytes ( ( ( int ) ( indexInfo . offset ) ) ) ; assert curOffsert == ( indexInfo . offset ) ; while ( ( file . bytesPastMark ( mark ) ) < ( ( indexInfo . offset ) + ( indexInfo . width ) ) ) { IColumn column = cf . getColumnSerializer ( ) . deserialize ( file ) ; if ( columnNames . contains ( column . name ( ) ) ) { cf . addColumn ( column ) ; } } } } public DecoratedKey getKey ( ) { } public ColumnFamily getColumnFamily ( ) { } protected IColumn computeNext ( ) { } }

Fix:
SortedSet < IndexHelper . IndexInfo > ranges = new TreeSet < IndexHelper . IndexInfo > ( IndexHelper . getComparator ( comparator , false ) ) ;
Buggy code:
public class WeeklyReportor implements TaskReportor { private String dbName ; private TaskService tasks ; private int reportDay ; private DocRender < ? extends Object > render ; public WeeklyReportor ( ) { } private String home ; public void setHome ( String home ) { } @ Override public InputStream getInputStream ( TaskReport rpt ) { } @ Override public void writeAndClose ( TaskReport rpt , OutputStream ops ) { } @ Override public TaskReport get ( Calendar c ) { } @ Override public List < TaskReport > getBy ( Calendar from , Calendar to ) { } @ Override public TaskReport make ( Calendar c ) { File f = getFile ( c . getTimeInMillis ( ) ) ; try { f = Files . createFileIfNoExists ( f . getAbsolutePath ( ) ) ; } catch ( IOException e ) { throw Lang . wrapThrow ( e ) ; } float toYear = Calendar . getInstance ( ) . get ( Calendar . YEAR ) ; float toWeek = Calendar . getInstance ( ) . get ( Calendar . WEEK_OF_YEAR ) ; float rptYear = c . get ( Calendar . YEAR ) ; float rptWeek = c . get ( Calendar . WEEK_OF_YEAR ) ; float wwOfYear = 365 // 7 ; int wwOffset = ( ( int ) ( ( ( rptYear * wwOfYear ) + rptWeek ) - ( ( toYear * wwOfYear ) + toWeek ) ) ) ; List < Task > dones = tasks . queryTasks ( TaskQuery . NEWf ( "&W(%s)<seq2seq4repair_space>%%(DONE)" , wwOffset ) . asc ( ) . sortBy ( "popAt" ) ) ; List < Task > pushs = tasks . queryTasks ( TaskQuery . NEWf ( "&W(%s)<seq2seq4repair_space>%%(ING,HUNGUP)" , wwOffset ) . asc ( ) . sortBy ( "pushAt" ) ) ; List < Task > news = tasks . queryTasks ( TaskQuery . NEWf ( "&W(%s)<seq2seq4repair_space>%%(NEW)" , wwOffset ) . asc ( ) . sortBy ( "createTime" ) ) ; KeyGetter < Task > keyg = new KeyGetter < Task > ( ) { public String getKey ( Task task ) { return "@" + ( task . getOwner ( ) ) ; } } ; ReportMap doneOrIng = new ReportMap ( ) ; doneOrIng . add ( dones , keyg ) ; doneOrIng . add ( pushs , keyg ) ; ReportMap newOrReject = new ReportMap ( ) ; newOrReject . add ( news , keyg ) ; if ( ( doneOrIng . isEmpty ( ) ) && ( newOrReject . isEmpty ( ) ) ) { Files . deleteFile ( f ) ; return new FileTaskReport ( c ) ; } ZDoc doc = new ZDoc ( ) ; doc . addAuthor ( "weekly-reportor" ) ; doc . setTime ( ZTasks . now ( ) ) ; <START_BUG> ZBlock p = ZD . p ( "Task<seq2seq4repair_space>Done<seq2seq4repair_space>or<seq2seq4repair_space>In<seq2seq4repair_space>Procesing:" ) ; <END_BUG> doneOrIng . joinTo ( p ) ; doc . root ( ) . add ( p ) ; p = ZD . p ( "New<seq2seq4repair_space>Tasks<seq2seq4repair_space>This<seq2seq4repair_space>Week:" ) ; newOrReject . joinTo ( p ) ; doc . root ( ) . add ( p ) ; Object obj = render . render ( doc ) ; Files . write ( f , obj ) ; return new FileTaskReport ( f ) ; } @ Override public TaskReport makeIfNoExists ( Calendar c ) { } @ Override public TaskReport drop ( Calendar c ) { } @ Override public List < TaskReport > dropBy ( Calendar from , Calendar to ) { } private List < TaskReport > getReportIn ( long from , long to ) { } private List < File > getFilesIn ( long from , long to ) { } private File getFile ( long ms ) { } }

Fix:
ZBlock p = ZD . p ( "Tasks<seq2seq4repair_space>Done<seq2seq4repair_space>or<seq2seq4repair_space>In<seq2seq4repair_space>Procesing:" ) ;
Buggy code:
public class DelegatingDataSource implements DataSource , InitializingBean { private DataSource targetDataSource ; public DelegatingDataSource ( ) { } public DelegatingDataSource ( DataSource targetDataSource ) { } public void setTargetDataSource ( DataSource targetDataSource ) { } public DataSource getTargetDataSource ( ) { } public void afterPropertiesSet ( ) { } public Connection getConnection ( ) throws SQLException { } public Connection getConnection ( String username , String password ) throws SQLException { } public PrintWriter getLogWriter ( ) throws SQLException { } public void setLogWriter ( PrintWriter out ) throws SQLException { } public int getLoginTimeout ( ) throws SQLException { } public void setLoginTimeout ( int seconds ) throws SQLException { } @ SuppressWarnings ( "unchecked" ) public < T > T unwrap ( Class < T > iface ) throws SQLException { } public boolean isWrapperFor ( Class < ? > iface ) throws SQLException { } public Logger getParentLogger ( ) { <START_BUG> return Logger . getGlobal ( ) ; <END_BUG> } }

Fix:
return Logger . getLogger ( Logger . GLOBAL_LOGGER_NAME ) ;
Buggy code:
public class HelloWorldTest extends WicketWebTestCase { public HelloWorldTest ( String name ) { } public void setUp ( ) throws Exception { } public void testHelloWorld ( ) throws Exception { beginAt ( "//helloworld" ) ; assertTitleEquals ( "Wicket<seq2seq4repair_space>Examples<seq2seq4repair_space>-<seq2seq4repair_space>helloworld" ) ; <START_BUG> assertXPath ( "////body//span[@wicket:id='message']" , "Hello<seq2seq4repair_space>World" ) ; <END_BUG> assertWicketIdTagText ( "message" , "Hello<seq2seq4repair_space>World" ) ; } public static Test suite ( ) { } }

Fix:
assertXPath ( "////body//span[@wicket:id='message']" , "Hello<seq2seq4repair_space>World!" ) ;