nus-yam/ex-repair huggingface dataset:
Buggy code:
public class PeerSync { public static Logger log = LoggerFactory . getLogger ( PeerSync . class ) ; public boolean debug = PeerSync . log . isDebugEnabled ( ) ; private List < String > replicas ; private int nUpdates ; private int maxUpdates ; private UpdateHandler uhandler ; private UpdateLog ulog ; private HttpShardHandlerFactory shardHandlerFactory ; private ShardHandler shardHandler ; private RecentUpdates recentUpdates ; private List < Long > startingVersions ; private List < Long > ourUpdates ; private Set < Long > ourUpdateSet ; private Set < Long > requestedUpdateSet ; private long ourLowThreshold ; private long ourHighThreshold ; private static final HttpClient client ; private static Comparator < Long > absComparator = new Comparator < Long > ( ) { @ Override public int compare ( Long o1 , Long o2 ) { } } ; private static Comparator < Object > updateRecordComparator = new Comparator < Object > ( ) { @ Override public int compare ( Object o1 , Object o2 ) { } } ; private static class SyncShardRequest extends ShardRequest { List < Long > reportedVersions ; List < Long > requestedUpdates ; Exception updateException ; } public PeerSync ( SolrCore core , List < String > replicas , int nUpdates ) { } public void setStartingVersions ( List < Long > startingVersions ) { } public long percentile ( List < Long > arr , float frac ) { } private String msg ( ) { ZkController zkController = uhandler . core . getCoreDescriptor ( ) . getCoreContainer ( ) . getZkController ( ) ; String myURL = "" ; if ( zkController != null ) { <START_BUG> myURL = zkController . getZkServerAddress ( ) ; <END_BUG> } return ( ( ( "PeerSync:<seq2seq4repair_space>core=" + ( uhandler . core . getName ( ) ) ) + "<seq2seq4repair_space>url=" ) + myURL ) + "<seq2seq4repair_space>" ; } public boolean sync ( ) { } private void requestVersions ( String replica ) { } private boolean handleResponse ( ShardResponse srsp ) { } private boolean handleVersions ( ShardResponse srsp ) { } private boolean requestUpdates ( ShardResponse srsp , List < Long > toRequest ) { } private boolean handleUpdates ( ShardResponse srsp ) { } public static void sync ( SolrCore core , List < String > replicas , int nUpdates ) { } }

Fix:
myURL = zkController . getBaseUrl ( ) ;
Buggy code:
public class GenericParent < T > implements GenericConsumer < T > { @ Override <START_BUG> public void consume ( T t ) { <END_BUG> } }

Fix:
public void consume ( final T t ) {
Buggy code:
public class JsonEventEncoder implements Encoder < Object > , Fields { private StringEncoder stringEncoder ; public JsonEventEncoder ( VerifiableProperties properties ) { } @ Override public byte [ ] toBytes ( Object object ) { if ( object instanceof String ) { return stringEncoder . toBytes ( ( ( String ) ( object ) ) ) ; } if ( object instanceof Event ) { return eventToBytes ( ( ( Event ) ( object ) ) ) ; } <START_BUG> throw new RuntimeException ( ( "Unsupported<seq2seq4repair_space>data<seq2seq4repair_space>type<seq2seq4repair_space>for<seq2seq4repair_space>encoding:<seq2seq4repair_space>" + ( object . getClass ( ) . getName ( ) ) ) ) ; <END_BUG> } public byte [ ] eventToBytes ( Event event ) { } private JSONObject encodeAttributes ( Map < String , Object > attrMap ) { } private Object jsonizeVal ( Object attrVal ) { } }

Fix:
throw new RuntimeException ( String . format ( "Unsupported<seq2seq4repair_space>data<seq2seq4repair_space>type<seq2seq4repair_space>%s<seq2seq4repair_space>for<seq2seq4repair_space>encoding<seq2seq4repair_space>of<seq2seq4repair_space>object:<seq2seq4repair_space>%s" , object . getClass ( ) . getName ( ) , object . toString ( ) ) ) ;
Buggy code:
public class NetDatabaseMetaData extends DatabaseMetaData { private boolean supportsQryclsimp_ ; private boolean supportsLayerBStreaming_ ; private boolean supportsSessionDataCaching_ ; private boolean supportsUDTs_ ; public NetDatabaseMetaData ( NetAgent netAgent , NetConnection netConnection ) { } public String getURL_ ( ) throws SqlException { } protected void computeFeatureSet_ ( ) { } final boolean serverSupportsQryclsimp ( ) { } final boolean serverSupportsLayerBStreaming ( ) { } final boolean serverSupportsSessionDataCaching ( ) { } final boolean serverSupportsUDTs ( ) { <START_BUG> return supportsSessionDataCaching_ ; <END_BUG> } }

Fix:
return supportsUDTs_ ;
Buggy code:
public final class OSGiSubsystemAdd extends AbstractSubsystemAdd < OSGiSubsystemElement > { private static final long serialVersionUID = - 4542570180370773590L ; private static final Logger log = Logger . getLogger ( "org.jboss.as.osgi" ) ; private OSGiSubsystemState subsystemState = new OSGiSubsystemState ( ) ; protected OSGiSubsystemAdd ( ) { } @ Override protected OSGiSubsystemElement createSubsystemElement ( ) { } OSGiSubsystemState getSubsystemState ( ) { } @ Override protected < P > void applyUpdate ( UpdateContext updateContext , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { OSGiSubsystemAdd . log . infof ( "Activating<seq2seq4repair_space>OSGi<seq2seq4repair_space>Subsystem" ) ; String value = SystemPropertyActions . getProperty ( "jboss.protocol.handler.modules" , "org.jboss.osgi.framework" ) ; if ( ! ( value . equals ( "org.jboss.osgi.framework" ) ) ) value = value + "|org.jboss.osgi.framework" ; System . setProperty ( "jboss.protocol.handler.modules" , value ) ; BatchBuilder batchBuilder = updateContext . getBatchBuilder ( ) ; Configuration config = Configuration . addService ( batchBuilder , subsystemState ) ; BundleManagerService . addService ( batchBuilder , config ) ; <START_BUG> FrameworkService . addService ( batchBuilder ) ; <END_BUG> PackageAdminService . addService ( batchBuilder ) ; new OSGiDeploymentActivator ( ) . activate ( batchBuilder ) ; } }

Fix:
FrameworkService . addService ( batchBuilder , config ) ;
Buggy code:
public class GameOfThronesConstructor extends MatrixConstructor { public static final String CHARACTER_FILE_NAME = "src//main//resources//data//characters//got-list-curated.txt" ; public static final String ORDERED_CHARACTER_FILE_NAME = "src//main//resources//data//characters//got-community-ordered.txt" ; public static final String TEXT_FILE_NAME = "src//main//resources//text//gameofthrones-intercap.txt" ; public static final int BOOK_NUMBER = 1 ; public static void main ( String [ ] args ) { int fileNum = 11 ; String fileDesc = "test" ; GameOfThronesConstructor constructor = new GameOfThronesConstructor ( 15 , 4 ) ; <START_BUG> constructor . constructMatrix ( LOG_FILE_MATRIX ) ; <END_BUG> constructor . writeFiles ( fileNum , fileDesc , LOG_FOLDER , false ) ; } public GameOfThronesConstructor ( int radius , int noise ) { } public String [ ] getOrderedCharacters ( ) { } }

Fix:
constructor . constructMatrix ( LOG_FILE_NAME ) ;
Buggy code:
public class TestMergeSchedulerExternal extends LuceneTestCase { volatile boolean mergeCalled ; volatile boolean mergeThreadCreated ; volatile boolean excCalled ; private class MyMergeException extends RuntimeException { Directory dir ; public MyMergeException ( Throwable exc , Directory dir ) { } } private class MyMergeScheduler extends ConcurrentMergeScheduler { private class MyMergeThread extends ConcurrentMergeScheduler . MergeThread { public MyMergeThread ( IndexWriter writer , MergePolicy . OneMerge merge ) throws IOException { } } protected MergeThread getMergeThread ( IndexWriter writer , MergePolicy . OneMerge merge ) throws IOException { } protected void handleMergeException ( Throwable t ) { } protected void doMerge ( MergePolicy . OneMerge merge ) throws IOException { } } private static class FailOnlyOnMerge extends MockRAMDirectory . Failure { public void eval ( MockRAMDirectory dir ) throws IOException { } } public void testSubclassConcurrentMergeScheduler ( ) throws IOException { MockRAMDirectory dir = new MockRAMDirectory ( ) ; dir . failOn ( new TestMergeSchedulerExternal . FailOnlyOnMerge ( ) ) ; Document doc = new Document ( ) ; Field idField = new Field ( "id" , "" , Store . YES , Index . NOT_ANALYZED ) ; doc . add ( idField ) ; <START_BUG> IndexWriter writer = new IndexWriter ( dir , true , new WhitespaceAnalyzer ( ) , true , MaxFieldLength . LIMITED ) ; <END_BUG> TestMergeSchedulerExternal . MyMergeScheduler ms = new TestMergeSchedulerExternal . MyMergeScheduler ( ) ; writer . setMergeScheduler ( ms ) ; writer . setMaxBufferedDocs ( 2 ) ; writer . setRAMBufferSizeMB ( writer . DISABLE_AUTO_FLUSH ) ; for ( int i = 0 ; i < 20 ; i ++ ) writer . addDocument ( doc ) ; ms . sync ( ) ; writer . close ( ) ; assertTrue ( mergeThreadCreated ) ; assertTrue ( mergeCalled ) ; assertTrue ( excCalled ) ; dir . close ( ) ; assertTrue ( ConcurrentMergeScheduler . anyUnhandledExceptions ( ) ) ; } }

Fix:
IndexWriter writer = new IndexWriter ( dir , new WhitespaceAnalyzer ( ) , true , MaxFieldLength . LIMITED ) ;
Buggy code:
public class JoranConfigurator extends ConfiguratorBase { Interpreter joranInterpreter ; LoggerRepository repository ; boolean listAppnderAttached = false ; public JoranConfigurator ( ) { } public void doConfigure ( URL url , LoggerRepository repository ) { } public List getErrorList ( ) { } public void doConfigure ( String filename , LoggerRepository repository ) { } public void doConfigure ( InputStream in , LoggerRepository repository ) { } public void doConfigure ( InputSource inputSource , LoggerRepository repository ) { } protected void selfInitialize ( ) { RuleStore rs = new SimpleRuleStore ( ) ; rs . addRule ( new Pattern ( "log4j:configuration" ) , new ConfigurationAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//substitutionProperty" ) , new SubstitutionPropertyAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//repositoryProperty" ) , new RepositoryPropertyAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//plugin" ) , new PluginAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//logger" ) , new LoggerAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//logger//level" ) , new LevelAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//logger//priority" ) , new PriorityAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//root" ) , new RootLoggerAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//root//level" ) , new LevelAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//root//priority" ) , new PriorityAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//logger//appender-ref" ) , new AppenderRefAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//root//appender-ref" ) , new AppenderRefAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//appender" ) , new AppenderAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//appender//layout" ) , new LayoutAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//appender//layout//conversionRule" ) , new ConversionRuleAction ( ) ) ; rs . addRule ( new Pattern ( "log4j:configuration//newRule" ) , new NewRuleAction ( ) ) ; rs . addRule ( new Pattern ( "*//param" ) , new ParamAction ( ) ) ; joranInterpreter = new Interpreter ( rs ) ; <START_BUG> joranInterpreter . addImplcitAction ( new NestComponentIA ( ) ) ; <END_BUG> ExecutionContext ec = joranInterpreter . getExecutionContext ( ) ; HashMap omap = ec . getObjectMap ( ) ; omap . put ( APPENDER_BAG , new HashMap ( ) ) ; } public ExecutionContext getExecutionContext ( ) { } }

Fix:
joranInterpreter . addImplicitAction ( new NestComponentIA ( ) ) ;
Buggy code:
public class TestLockFactory extends LuceneTestCase { public void testCustomLockFactory ( ) throws IOException { } public void testRAMDirectoryNoLocking ( ) throws IOException { } public void testDefaultRAMDirectory ( ) throws IOException { } public void testDefaultFSDirectory ( ) throws IOException { } public void testFSDirectoryTwoCreates ( ) throws IOException { } public void testLockClassProperty ( ) throws IOException { } public void testDisableLocks ( ) throws IOException { } public void testFSDirectoryDifferentLockFactory ( ) throws IOException { } public void testStressLocks ( ) throws IOException { } public void testStressLocksNativeFSLockFactory ( ) throws IOException { } public void _testStressLocks ( LockFactory lockFactory , String indexDirName ) throws IOException { <START_BUG> FSDirectory fs1 = FSDirectory . getDirectory ( indexDirName , lockFactory , false ) ; <END_BUG> IndexWriter w = new IndexWriter ( fs1 , new WhitespaceAnalyzer ( ) , true ) ; addDoc ( w ) ; w . close ( ) ; TestLockFactory . WriterThread writer = new TestLockFactory . WriterThread ( 100 , fs1 ) ; TestLockFactory . SearcherThread searcher = new TestLockFactory . SearcherThread ( 100 , fs1 ) ; writer . start ( ) ; searcher . start ( ) ; while ( ( writer . isAlive ( ) ) || ( searcher . isAlive ( ) ) ) { try { Thread . sleep ( 1000 ) ; } catch ( InterruptedException e ) { } } assertTrue ( "IndexWriter<seq2seq4repair_space>hit<seq2seq4repair_space>unexpected<seq2seq4repair_space>exceptions" , ( ! ( writer . hitException ) ) ) ; assertTrue ( "IndexSearcher<seq2seq4repair_space>hit<seq2seq4repair_space>unexpected<seq2seq4repair_space>exceptions" , ( ! ( searcher . hitException ) ) ) ; rmDir ( indexDirName ) ; } public void testNativeFSLockFactory ( ) throws IOException { } public void testNativeFSLockFactoryPrefix ( ) throws IOException { } public void testDefaultFSLockFactoryPrefix ( ) throws IOException { } private class WriterThread extends Thread { private Directory dir ; private int numIteration ; public boolean hitException = false ; public WriterThread ( int numIteration , Directory dir ) { } public void run ( ) { } } private class SearcherThread extends Thread { private Directory dir ; private int numIteration ; public boolean hitException = false ; public SearcherThread ( int numIteration , Directory dir ) { } public void run ( ) { } } public class MockLockFactory extends LockFactory { public boolean lockPrefixSet ; public Hashtable locksCreated = new Hashtable ( ) ; public int makeLockCount = 0 ; public void setLockPrefix ( String lockPrefix ) { } public synchronized Lock makeLock ( String lockName ) { } public void clearLock ( String specificLockName ) { } public class MockLock extends Lock { public int lockAttempts ; public boolean obtain ( ) { } public void release ( ) { } public boolean isLocked ( ) { } } } private void addDoc ( IndexWriter writer ) throws IOException { } private void rmDir ( String dirName ) { } }

Fix:
FSDirectory fs1 = FSDirectory . getDirectory ( indexDirName , lockFactory ) ;
Buggy code:
public class MemberRef extends ASTNode implements IDocElement { public static final ChildPropertyDescriptor QUALIFIER_PROPERTY = new ChildPropertyDescriptor ( MemberRef . class , "qualifier" , Name . class , ASTNode . OPTIONAL , ASTNode . NO_CYCLE_RISK ) ; public static final ChildPropertyDescriptor NAME_PROPERTY = new ChildPropertyDescriptor ( MemberRef . class , "name" , SimpleName . class , ASTNode . MANDATORY , ASTNode . NO_CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } private Name optionalQualifier = null ; private SimpleName memberName = null ; MemberRef ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final ASTNode internalGetSetChildProperty ( ChildPropertyDescriptor property , boolean get , ASTNode child ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public Name getQualifier ( ) { } public void setQualifier ( Name name ) { } public SimpleName getName ( ) { if ( ( this . memberName ) == null ) { <START_BUG> synchronized ( this . ast ) { <END_BUG> if ( ( this . memberName ) == null ) { preLazyInit ( ) ; this . memberName = new SimpleName ( this . ast ) ; postLazyInit ( this . memberName , MemberRef . NAME_PROPERTY ) ; } } } return this . memberName ; } public void setName ( SimpleName name ) { } public final IBinding resolveBinding ( ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
synchronized ( this ) {
Buggy code:
public class AsmElementFormatter { public static final String DECLARE_PRECEDENCE = "precedence" ; public static final String DECLARE_SOFT = "soft" ; public static final String DECLARE_PARENTS = "parents" ; public static final String DECLARE_WARNING = "warning" ; public static final String DECLARE_ERROR = "error" ; public static final String DECLARE_UNKNONWN = "<unknown<seq2seq4repair_space>declare>" ; public static final String POINTCUT_ABSTRACT = "<abstract<seq2seq4repair_space>pointcut>" ; public static final String POINTCUT_ANONYMOUS = "<anonymous<seq2seq4repair_space>pointcut>" ; public static final int MAX_MESSAGE_LENGTH = 18 ; public static final String DEC_LABEL = "declare" ; public void genLabelAndKind ( MethodDeclaration methodDeclaration , IProgramElement node ) { } private String genDecaLabel ( DeclareAnnotation deca ) { } private String genPrecedenceListLabel ( TypePatternList list ) { } private void setParameters ( MethodDeclaration md , IProgramElement pe ) { } private boolean acceptArgument ( String name , String type ) { } public String genTypePatternLabel ( TypePattern tp ) { final String TYPE_PATTERN_LITERAL = "<type<seq2seq4repair_space>pattern>" ; String label ; UnresolvedType typeX = tp . getExactType ( ) ; <START_BUG> if ( typeX != ( ResolvedType . MISSING ) ) { <END_BUG> label = typeX . getName ( ) ; if ( tp . isIncludeSubtypes ( ) ) label += "+" ; } else { label = TYPE_PATTERN_LITERAL ; } return label ; } public String genDeclareMessage ( String message ) { } private String translatePointcutName ( String name ) { } }

Fix:
if ( ! ( ResolvedType . isMissing ( typeX ) ) ) {
Buggy code:
public class MockWebApplicationTest extends TestCase { private MockWebApplication application ; public MockWebApplicationTest ( String name ) { } protected void setUp ( ) throws Exception { } public void testRenderHomePage ( ) throws Exception { } public void testClickLink ( ) throws Exception { } private boolean validateDocument ( String document , int expectedLinkClickCount ) { HtmlDocumentValidator validator = new HtmlDocumentValidator ( ) ; Tag html = new Tag ( "html" ) ; Tag head = new Tag ( "head" ) ; html . addExpectedChild ( head ) ; Tag title = new Tag ( "title" ) ; head . addExpectedChild ( title ) ; title . addExpectedChild ( new TextContent ( "Mock<seq2seq4repair_space>Page" ) ) ; Tag body = new Tag ( "body" ) ; html . addExpectedChild ( body ) ; Tag a = new Tag ( "a" ) ; a . addExpectedAttribute ( "href" , "//MockWebApplication//MockWebApplication\\?component=[0-9]*.actionLink&amp;rendering=[0-9]*&amp;interface=ILinkListener" ) ; <START_BUG> a . addExpectedAttribute ( "id" , "actionLink" ) ; <END_BUG> body . addExpectedChild ( a ) ; a . addExpectedChild ( new TextContent ( "Action<seq2seq4repair_space>link<seq2seq4repair_space>clicked<seq2seq4repair_space>" ) ) ; Tag span = new Tag ( "span" ) ; span . addExpectedChild ( new TextContent ( ( "" + expectedLinkClickCount ) ) ) ; a . addExpectedChild ( span ) ; a . addExpectedChild ( new TextContent ( "<seq2seq4repair_space>times" ) ) ; validator . addRootElement ( html ) ; return validator . isDocumentValid ( document ) ; } }

Fix:
a . addExpectedAttribute ( "id" , "wicket-actionLink" ) ;
Buggy code:
@ RunWith ( Arquillian . class ) @ ServerSetup ( ObjectFactoryWithEnvironmentBindingTestCase . ObjectFactoryWithEnvironmentBindingTestCaseServerSetup . class ) public class ObjectFactoryWithEnvironmentBindingTestCase { private static Logger LOGGER = Logger . getLogger ( ObjectFactoryWithEnvironmentBindingTestCase . class ) ; private static final String MODULE_NAME = "objectFactoryWithEnvironmentBindingModule" ; private static final String MODULE_JAR_NAME = "objectFactoryWithEnvironmentBinding.jar" ; private static final Map < String , String > ENVIRONMENT_PROPERTIES = ObjectFactoryWithEnvironmentBindingTestCase . getEnvironmentProperties ( ) ; private static Map < String , String > getEnvironmentProperties ( ) { } public static void validateEnvironmentProperties ( Hashtable < ? , ? > environment ) throws IllegalArgumentException { } static class ObjectFactoryWithEnvironmentBindingTestCaseServerSetup implements ServerSetupTask { @ Override public void setup ( final ManagementClient managementClient , final String containerId ) throws Exception { } private ModelNode createAddress ( ) { } @ Override public void tearDown ( final ManagementClient managementClient , final String containerId ) throws Exception { } } @ Deployment public static JavaArchive deploy ( ) { } @ Test public void testBindingWithEnvironment ( ) throws Exception { } private static void deployModule ( ) throws IOException { } private static void undeployModule ( ) { } private static File getModulesHome ( ) { String modulePath = System . getProperty ( "module.path" , null ) ; if ( modulePath == null ) { String jbossHome = System . getProperty ( "jboss.home" , null ) ; if ( jbossHome == null ) { throw new IllegalStateException ( "Neither<seq2seq4repair_space>-Dmodule.path<seq2seq4repair_space>nor<seq2seq4repair_space>-Djboss.home<seq2seq4repair_space>were<seq2seq4repair_space>set" ) ; } modulePath = ( jbossHome + ( File . separatorChar ) ) + "modules" ; } else { <START_BUG> modulePath = modulePath . split ( File . pathSeparator ) [ 1 ] ; <END_BUG> } File moduleDir = new File ( modulePath ) ; if ( ! ( moduleDir . exists ( ) ) ) { throw new IllegalStateException ( "Determined<seq2seq4repair_space>module<seq2seq4repair_space>path<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist" ) ; } if ( ! ( moduleDir . isDirectory ( ) ) ) { throw new IllegalStateException ( "Determined<seq2seq4repair_space>module<seq2seq4repair_space>path<seq2seq4repair_space>is<seq2seq4repair_space>not<seq2seq4repair_space>a<seq2seq4repair_space>dir" ) ; } return moduleDir ; } private static void copyFile ( File target , InputStream src ) throws IOException { } private static void deleteRecursively ( File file ) { } }

Fix:
modulePath = modulePath . split ( File . pathSeparator ) [ 0 ] ;
Buggy code:
public class AjBuildManagerTest extends TestCase { private StreamPrintWriter outputWriter = new StreamPrintWriter ( new PrintWriter ( System . out ) ) ; private MessageWriter messageWriter = new MessageWriter ( outputWriter , false ) ; public static File source1 = new File ( "testdata//src1//A.java" ) ; public static File source2 = new File ( "testdata//src1//Hello.java" ) ; public static File source3 = new File ( "testdata//src1//X.java" ) ; public static void assertCompileMessagesValid ( MessageHandler handler ) { } public AjBuildManagerTest ( String name ) { } public void testSimpleStructure ( ) throws IOException , CoreException { AjBuildManager manager = new AjBuildManager ( messageWriter ) ; BuildArgParser parser = new BuildArgParser ( ) ; String javaClassPath = System . getProperty ( "java.class.path" ) ; AjBuildConfig buildConfig = parser . genBuildConfig ( new String [ ] { "-d" , "out" , "-classpath" , javaClassPath , "testdata//src1//A.java" } , messageWriter ) ; String err = parser . getOtherMessages ( true ) ; assertTrue ( err , ( null == err ) ) ; <START_BUG> manager . setStructureModel ( INSTANCE . getStructureModel ( ) ) ; <END_BUG> MessageHandler handler = new MessageHandler ( ) ; manager . batchBuild ( buildConfig , handler ) ; AjBuildManagerTest . assertCompileMessagesValid ( handler ) ; } private void touch ( File file , boolean isAppend ) throws IOException { } }

Fix:
manager . setStructureModel ( StructureModelManager . getDefault ( ) . getStructureModel ( ) ) ;
Buggy code:
public abstract class SwtScoutBasicFieldComposite < T extends IBasicField < ? > > extends SwtScoutValueFieldComposite < T > { private Point m_backupSelection = null ; private TextFieldEditableSupport m_editableSupport ; private boolean m_validateOnAnyKey ; private boolean m_updateDisplayTextOnModify ; protected void addModifyListenerForBasicField ( Widget inputField ) { } @ Override protected void attachScout ( ) { } @ Override protected void setDisplayTextFromScout ( String newText ) { } protected abstract String getText ( ) { } protected abstract void setText ( String text ) { } protected abstract Point getSelection ( ) { } protected abstract void setSelection ( int startIndex , int endIndex ) { } protected abstract int getCaretOffset ( ) { } protected abstract void setCaretOffset ( int caretPosition ) { } protected abstract TextFieldEditableSupport createEditableSupport ( ) { } protected void selectField ( int startIndex , int endIndex ) { } protected void restoreSelection ( ) { } protected void clearSelection ( ) { } protected void scheduleSelectAll ( ) { } @ Override protected void setFieldEnabled ( Control swtField , boolean enabled ) { } @ Override protected void handleSwtFocusGained ( ) { } @ Override protected void handleSwtFocusLost ( ) { } @ Override protected boolean handleSwtInputVerifier ( ) { final String text = getText ( ) ; <START_BUG> if ( ( CompareUtility . equals ( text , SwtScoutBasicFieldComposite . getScoutObject ( ) . getDisplayText ( ) ) ) && ( ( SwtScoutBasicFieldComposite . getScoutObject ( ) . getErrorStatus ( ) ) == null ) ) { <END_BUG> return true ; } Runnable t = new Runnable ( ) { @ Override public void run ( ) { getScoutObject ( ) . getUIFacade ( ) . setTextFromUI ( text , false ) ; } } ; JobEx job = SwtScoutBasicFieldComposite . getEnvironment ( ) . invokeScoutLater ( t , 0 ) ; try { job . join ( 2345 ) ; } catch ( InterruptedException e ) { } SwtScoutBasicFieldComposite . getEnvironment ( ) . dispatchImmediateSwtJobs ( ) ; return true ; } @ Override protected void handleScoutPropertyChange ( String name , Object newValue ) { } private void setValidateOnAnyKeyFromScout ( boolean b ) { } protected void setUpdateDisplayTextOnModifyFromScout ( boolean b ) { } protected class P_SwtTextModifyListener implements ModifyListener { @ Override public void modifyText ( ModifyEvent e ) { } private void setDisplayTextInScout ( ) { } private void sendVerifyToScoutAndIgnoreResponses ( ) { } } }

Fix:
if ( ( ( ! ( m_updateDisplayTextOnModify ) ) && ( CompareUtility . equals ( text , SwtScoutBasicFieldComposite . getScoutObject ( ) . getDisplayText ( ) ) ) ) && ( ( SwtScoutBasicFieldComposite . getScoutObject ( ) . getErrorStatus ( ) ) == null ) ) {
Buggy code:
public class FoursquareApi { private static final Logger LOGGER = LoggerFactory . getLogger ( FoursquareApi . class ) ; private static final String VERSION = "20150208" ; private final String clientId ; private final String clientSecret ; private String accessToken ; private Locale locale ; private Properties urls ; public FoursquareApi ( String clientId , String clientSecret ) { } public AccessTokenResponse getAccessToken ( String authorizationCode ) { } public Result < User > getUser ( String userId ) { } public Result < Group < User > > getUserFriends ( String userId , Integer limit , Integer offset ) { } public Result < List > getUserTips ( String userId , Integer limit , Integer offset , String llBounds , String categoryId , String sort ) { } public Result < Group < Venue > > getUserVenueLikes ( String userId , Long beforeTimestamp , Long afterTimestamp , String categoryId , Integer limit , Integer offset ) { } public Result < Venue > getVenue ( String venueId ) { } public Result < Category [ ] > getVenueCategories ( ) { } public Result < Venue [ ] > searchVenues ( String ll , String near , Double llAcc , Integer alt , Double altAcc , String query , Integer limit , String intent , Integer radius , String sw , String ne , String categoryId , String url , String providerId , String linkedId ) { } public Result < ExploreVenueGroups > exploreVenues ( String ll , String near , Double llAcc , Integer alt , Double altAcc , Integer radius , String section , String query , Integer limit , Integer offset , String novelty , String friendVisits , String time , String day , Boolean venuePhotos , String lastVenue , Boolean openNow , Boolean sortByDistance , Double price , Boolean saved , Boolean specials ) { } public Result < Group < Venue > > getNextVenues ( String venueId ) { } public void setAccessToken ( String accessToken ) { } public void setLocale ( Locale locale ) { <START_BUG> this . locale = locale ; <END_BUG> } private void loadUrlsFile ( ) { } private String getString ( String key , Object ... params ) { } private URIBuilder newUriBuilder ( String url ) { } private URIBuilder newApiUriBuilder ( ) { } private RequestBuilder newRequestBuilder ( String url ) { } No newline ; at end ; of file ; }

Fix:
this . locale = ( locale == null ) ? Locale . ENGLISH : locale ;
Buggy code:
public class FolderTreeModel extends DefaultTreeModel { protected FolderXmlConfig folderXmlConfig ; protected TempFolder tempFolder ; private static FolderTreeModel instance = new FolderTreeModel ( MailConfig . getInstance ( ) . getFolderConfig ( ) ) ; public FolderTreeModel ( FolderXmlConfig folderConfig ) { } public static FolderTreeModel getInstance ( ) { } public void createDirectories ( XmlElement parentTreeNode , IMailFolder parentFolder ) { } public IMailFolder add ( XmlElement childNode , IMailFolder parentFolder ) { FolderItem item = new FolderItem ( childNode ) ; if ( item == null ) { return null ; } String name = null ; int uid = item . getInteger ( "uid" ) ; try { if ( uid == 100 ) { name = MailResourceLoader . getString ( "tree" , "localfolders" ) ; } else if ( uid == 101 ) { name = MailResourceLoader . getString ( "tree" , "inbox" ) ; } else if ( uid == 102 ) { name = MailResourceLoader . getString ( "tree" , "drafts" ) ; } else if ( uid == 103 ) { name = MailResourceLoader . getString ( "tree" , "outbox" ) ; } else if ( uid == 104 ) { name = MailResourceLoader . getString ( "tree" , "sent" ) ; } else if ( uid == 105 ) { name = MailResourceLoader . getString ( "tree" , "trash" ) ; } else if ( uid == 106 ) { name = MailResourceLoader . getString ( "tree" , "search" ) ; } else if ( uid == 107 ) { name = MailResourceLoader . getString ( "tree" , "templates" ) ; } else { name = item . getString ( "property" , "name" ) ; } item . setString ( "property" , "name" , name ) ; } catch ( MissingResourceException ex ) { name = item . getString ( "property" , "name" ) ; } String type = item . get ( "type" ) ; IExtensionHandler handler = null ; try { <START_BUG> handler = PluginManager . getInstance ( ) . getHandler ( ORG_COLUMBA_MAIL_FOLDER ) ; <END_BUG> } catch ( PluginHandlerNotFoundException ex ) { ErrorDialog . createDialog ( ex . getMessage ( ) , ex ) ; } String path = ( Config . getInstance ( ) . getConfigDirectory ( ) ) + "//mail//" ; Object [ ] args = new Object [ ] { item , path } ; IMailFolder folder = null ; try { IExtension extension = handler . getExtension ( type ) ; folder = ( ( IMailFolder ) ( extension . instanciateExtension ( args ) ) ) ; parentFolder . add ( folder ) ; } catch ( Exception ex ) { ex . printStackTrace ( ) ; } return folder ; } public IMailFolder getFolder ( int uid ) { } public IMailFolder getTrashFolder ( ) { } public IMailFolder getImapFolder ( int accountUid ) { } public IMailFolder getFolder ( TreeNodeList list ) { } public IMailFolder findFolder ( IMailFolder parentFolder , String str ) { } public TempFolder getTempFolder ( ) { } }

Fix:
handler = PluginManager . getInstance ( ) . getExtensionHandler ( ORG_COLUMBA_MAIL_FOLDER ) ;
Buggy code:
public class RetainableFragment extends Fragment { public static final String TAG = "RetainableFragment" ; private RetainableFragment . ParseCommandTask parseCommandTask ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onAttach ( Activity activity ) { } @ Override public void onDestroy ( ) { } @ Override public void onDetach ( ) { } public void startWork ( Refreshable refreshable , String query , String locationString , int page , int count ) { } private static final class ParseCommandTask extends AsyncTask < String , Void , QueryResponse > { public static final String SEARCH_URL = "http:////vocifery.com//api//v0//query" ; public static final String RESOURCE_NODE = "resource" ; public static final String PAGE_NODE = "page" ; public static final String COUNT_NODE = "count" ; public static final String TOTAL_NODE = "total" ; public static final String ENTITIES_NODE = "entities" ; public static final String NAME_NODE = "name" ; public static final String URL_NODE = "url" ; public static final String LOCATION_NODE = "location" ; public static final String EXTENDED_ADDRESS_NODE = "extendedAddress" ; public static final String DETAILS_NODE = "details" ; public static final String RATING_URL_NODE = "ratingUrl" ; public static final String REVIEW_COUNT_NODE = "reviewCount" ; public static final String COORDINATE_NODE = "coordinate" ; public static final String LONGITUDE_NODE = "longitude" ; public static final String LATITUDE_NODE = "latitude" ; public static final String IMAGES_NODE = "imageUrls" ; private static final int CONNECTION_TIMEOUT = 7000 ; private static final int SOCKET_TIMEOUT = 7000 ; private Refreshable refreshable ; public ParseCommandTask ( Refreshable refreshable ) { } public synchronized void setRefreshable ( Refreshable refreshable ) { } @ Override protected QueryResponse doInBackground ( String ... params ) { } @ Override protected synchronized void onPostExecute ( QueryResponse response ) { if ( ( refreshable ) != null ) { <START_BUG> refreshable . receivedResponse ( response ) ; <END_BUG> } } private QueryResponse parseJson ( String jsonResponse ) throws JSONException { } } }

Fix:
refreshable . receivedResponse ( response , true ) ;
Buggy code:
public class LocalDeclaration extends AbstractVariableDeclaration { public LocalVariableBinding binding ; public LocalDeclaration ( Expression expr , char [ ] name , int sourceStart , int sourceEnd ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { <START_BUG> if ( ( ! ( flowInfo . isDeadEnd ( ) ) ) && ( ! ( flowInfo . isFakeReachable ( ) ) ) ) { <END_BUG> bits |= IsLocalDeclarationReachableMASK ; } if ( ( initialization ) == null ) return flowInfo ; flowInfo = initialization . analyseCode ( currentScope , flowContext , flowInfo ) . unconditionalInits ( ) ; flowInfo . markAsDefinitelyAssigned ( binding ) ; return flowInfo ; } public void checkModifiers ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public String name ( ) { } public void resolve ( BlockScope scope ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope scope ) { } }

Fix:
if ( ( flowInfo != ( DeadEnd ) ) && ( ! ( flowInfo . isFakeReachable ( ) ) ) ) {
Buggy code:
public static String toString ( DatabaseMetaData meta ) throws SQLException { String lineSep = J2DoPrivHelper . getLineSeparator ( ) ; <START_BUG> StringBuffer buf = new StringBuffer ( ) ; <END_BUG>

Fix:
StringBuilder buf = new StringBuilder ( 4096 ) ;
Buggy code:
public class CommandDispatcherFactoryServiceInstaller implements GroupServiceInstaller { private final Logger logger = Logger . getLogger ( this . getClass ( ) ) ; private final GroupServiceBuilder < CommandDispatcherFactory > builder ; protected CommandDispatcherFactoryServiceInstaller ( GroupServiceBuilder < CommandDispatcherFactory > builder ) { } private static BindInfo createBinding ( String group ) { } @ Override public Collection < ServiceName > getServiceNames ( String group ) { } @ Override public void install ( ServiceTarget target , String group , ModuleIdentifier module ) { ServiceName name = COMMAND_DISPATCHER . getServiceName ( group ) ; ContextNames . BindInfo bindInfo = CommandDispatcherFactoryServiceInstaller . createBinding ( group ) ; this . logger . debugf ( "Installing<seq2seq4repair_space>%s<seq2seq4repair_space>service,<seq2seq4repair_space>bound<seq2seq4repair_space>to<seq2seq4repair_space>" , name . getCanonicalName ( ) , bindInfo . getAbsoluteJndiName ( ) ) ; this . builder . build ( target , name , group , module ) . setInitialMode ( ServiceController . Mode . ON_DEMAND ) . install ( ) ; <START_BUG> new org . jboss . as . clustering . naming . BinderServiceBuilder ( target ) . build ( bindInfo , name , CommandDispatcherFactory . class ) . install ( ) ; <END_BUG> } }

Fix:
new org . jboss . as . clustering . naming . BinderServiceBuilder ( bindInfo , name , CommandDispatcherFactory . class ) . build ( target ) . install ( ) ;
Buggy code:
public class BuyerRocketsDeliveredAspect extends AbstractContainerAspect { private static Set < Integer > purchases = new HashSet < > ( ) ; public final AspectResult postWrite ( final WriteEntriesRequest request , final Transaction tx , final SubTransaction stx , final Capi3AspectPort capi3 , final int executionCount ) { Rocket rocket = ( ( Rocket ) ( request . getEntries ( ) . get ( 0 ) . getValue ( ) ) ) ; int purchaseId = rocket . getPurchase ( ) . getPurchaseId ( ) . intValue ( ) ; if ( ! ( BuyerRocketsDeliveredAspect . purchases . contains ( purchaseId ) ) ) { <START_BUG> Buyer . setPurchaseStatusToFinished ( purchaseId ) ; <END_BUG> BuyerRocketsDeliveredAspect . purchases . add ( purchaseId ) ; } return AspectResult . OK ; } }

Fix:
Buyer . setPurchaseStatusToShipped ( purchaseId ) ;
Buggy code:
@ Configuration @ EnableMongoRepositories @ ConfigurationProperties ( prefix = "spring.data.mongodb" ) @ EnableConfigurationProperties @ Component public class MongoConfiguration { private String host ; private Integer port ; private String database ; @ Value ( "${mongo.categories.host}" ) private String categoriesHost ; @ Value ( "${mongo.categories.port}" ) private Integer categoriesPort ; @ Value ( "${mongo.categories.database}" ) private String categoriesDatabase ; public String getHost ( ) { } public void setHost ( String host ) { } public Integer getPort ( ) { } public void setPort ( Integer port ) { } public String getDatabase ( ) { } public void setDatabase ( String database ) { } @ SuppressWarnings ( "deprecation" ) @ Bean public MongoDbFactory mongoDbFactory ( ) throws Exception { } @ Bean public MongoTemplate mongoTemplate ( ) throws Exception { } @ SuppressWarnings ( "deprecation" ) @ Bean public MongoDbFactory categoriesMongoDbFactory ( ) throws Exception { <START_BUG> return new org . springframework . data . mongodb . core . SimpleMongoDbFactory ( new Mongo ( host , port ) , database ) ; <END_BUG> } @ Bean public MongoTemplate categoriesMongoTemplate ( ) throws Exception { } No newline ; at end ; of file ; }

Fix:
return new org . springframework . data . mongodb . core . SimpleMongoDbFactory ( new Mongo ( categoriesHost , categoriesPort ) , database ) ;
Buggy code:
public class SimpleFieldFragList extends FieldFragList { public SimpleFieldFragList ( int fragCharSize ) { } @ Override public void add ( int startOffset , int endOffset , List < WeightedPhraseInfo > phraseInfoList ) { float totalBoost = 0 ; List < SubInfo > subInfos = new ArrayList < SubInfo > ( ) ; for ( WeightedPhraseInfo phraseInfo : phraseInfoList ) { <START_BUG> subInfos . add ( new SubInfo ( phraseInfo . getText ( ) , phraseInfo . getTermsOffsets ( ) , phraseInfo . getSeqnum ( ) ) ) ; <END_BUG> totalBoost += phraseInfo . getBoost ( ) ; } getFragInfos ( ) . add ( new WeightedFragInfo ( startOffset , endOffset , subInfos , totalBoost ) ) ; } }

Fix:
subInfos . add ( new SubInfo ( phraseInfo . getText ( ) , phraseInfo . getTermsOffsets ( ) , phraseInfo . getSeqnum ( ) , phraseInfo . getBoost ( ) ) ) ;
Buggy code:
public class ColumnListItem extends CustomListItem { protected TextField txtField ; protected ComboBox < String > comboBox ; protected ComboBox < String > secondBox ; protected CheckBox cbSort ; protected CheckBox use ; protected GroupListItem groupLI ; ColumnListItem ( ListView < ? extends CustomListItem > par , GroupListItem gli ) { } private void onChange ( ActionEvent event ) { } protected void addDateOptions ( String type ) { switch ( type ) { case "Date//Time" : setSecondBox ( new String [ ] { "dd-MM-yyyy<seq2seq4repair_space>HH:mm" , "dd-MM-yyyy<seq2seq4repair_space>HH:mm:ss" , "dd//MM//yyyy<seq2seq4repair_space>HH:mm" , "dd//MM//yyyy<seq2seq4repair_space>HH:mm:ss" , "Excel<seq2seq4repair_space>epoch" } ) ; break ; case "Date" : <START_BUG> setSecondBox ( new String [ ] { "dd//MM//yyyy" , "dd//MM//yy" , "dd-MM-yyyy" , "dd-MM-yy" , "yyMMdd" , "Excel<seq2seq4repair_space>epoch" , "d//M//yy" } ) ; <END_BUG> break ; case "Time" : setSecondBox ( new String [ ] { "HH:mm" , "HHmm" } ) ; break ; default : break ; } } private void deleteExtraOptions ( ) { } private void setSecondBox ( String [ ] options ) { } @ Override public void select ( ) { } @ Override public void selectNext ( ) { } @ SuppressWarnings ( "unchecked" ) public void setupDragDrop ( Node n ) { } }

Fix:
setSecondBox ( new String [ ] { "dd//MM//yyyy" , "dd//MM//yy" , "dd-MM-yyyy" , "dd-MM-yy" , "yyMMdd" , "Excel<seq2seq4repair_space>epoch" , "d//M//yy" , "yyyy-MM-dd" , "d//M//yyyy" } ) ;
Buggy code:
public class DropDownChoice extends AbstractSingleSelectChoice implements IOnChangeListener { private static final long serialVersionUID = 122777360064586107L ; public DropDownChoice ( final String id , final Collection choices ) { } public DropDownChoice ( final String id , final IChoiceList choices ) { } public DropDownChoice ( final String id , IModel model , final Collection choices ) { } public DropDownChoice ( final String id , IModel model , final IChoiceList choices ) { } public final void onSelectionChanged ( ) { } protected void onComponentTag ( final ComponentTag tag ) { checkComponentTag ( tag , "select" ) ; <START_BUG> final String url = getPage ( ) . urlFor ( this , IOnChangeListener . class ) ; <END_BUG> if ( wantOnSelectionChangedNotifications ( ) ) { tag . put ( "onChange" , ( ( ( ( "location.href='" + url ) + "&" ) + ( getPath ( ) ) ) + "='<seq2seq4repair_space>+<seq2seq4repair_space>this.options[this.selectedIndex].value;" ) ) ; } super . onComponentTag ( tag ) ; } protected void onSelectionChanged ( final Object newSelection ) { } protected boolean wantOnSelectionChangedNotifications ( ) { } }

Fix:
final String url = urlFor ( IOnChangeListener . class ) ;
Buggy code:
class RemoveFromIndex extends IndexRequest { String resourceName ; public RemoveFromIndex ( String resourceName , IPath containerPath , IndexManager manager ) { } public boolean execute ( IProgressMonitor progressMonitor ) { if ( ( this . isCancelled ) || ( ( progressMonitor != null ) && ( progressMonitor . isCanceled ( ) ) ) ) return true ; Index index = this . manager . getIndex ( this . containerPath , true , false ) ; if ( index == null ) return true ; ReadWriteMonitor monitor = index . monitor ; if ( monitor == null ) return true ; try { monitor . enterWrite ( ) ; <START_BUG> index . remove ( resourceName ) ; <END_BUG> } finally { monitor . exitWrite ( ) ; } return true ; } public String toString ( ) { } }

Fix:
index . remove ( this . resourceName ) ;
Buggy code:
public class ResourceTestRR { public static void main ( String [ ] args ) { ProcessGenerator procGen = new ProcessGenerator ( 40 , 10 , 50 ) ; Resource resource = new Resource ( procGen ) ; <START_BUG> resource . simulateProcesses ( 20 ) ; <END_BUG> resource . RRAlgorithm ( 10 ) ; resource . printDoneData ( ) ; } }

Fix:
resource . simulateProcesses ( 5 ) ;
Buggy code:
public abstract class AbstractSeries { public static interface PointListener { void pointOnTouched ( AbstractPoint point ) { } } protected float mScaleX = 1 ; protected float mScaleY = 1 ; private List < AbstractPoint > mPoints ; private boolean mPointsSorted = false ; private double mMinX = Double . MAX_VALUE ; private double mMaxX = Double . MIN_VALUE ; private double mMinY = Double . MAX_VALUE ; private double mMaxY = Double . MIN_VALUE ; private double mRangeX = 0 ; private double mRangeY = 0 ; public Context mContext ; public abstract void drawPoint ( Canvas canvas , AbstractPoint point , Rect contentRect , RectF currentViewPoint ) { } public abstract void drawText ( Canvas canvas , Rect contentRect , RectF currentViewPoint ) { } public abstract void drawLine ( Canvas canvas , Rect contentRect , RectF currentViewPoint ) { } public abstract void drawMountain ( Canvas canvas , Rect contentRect , RectF currentViewPoint ) { } public List < AbstractPoint > getPoints ( ) { } public void setPoints ( List < ? extends AbstractPoint > points ) { } public void addPoint ( AbstractPoint point ) { } public void sortPoints ( ) { } private void resetRange ( ) { } private void extendRange ( double x , double y ) { } double getMinX ( ) { } double getMaxX ( ) { } double getMinY ( ) { } double getMaxY ( ) { } double getRangeX ( ) { } double getRangeY ( ) { } public double getPointY ( double X ) { } public String getName ( double X ) { } public AbstractPoint handleTouchEvent ( MotionEvent event ) { float X = event . getX ( ) ; float Y = event . getY ( ) ; for ( AbstractPoint point : mPoints ) { <START_BUG> if ( point . getPointRect ( ) . contains ( X , Y ) ) { <END_BUG> return point ; } } return null ; } public Place getPlace ( AbstractPoint point ) { } protected void onDrawingComplete ( ) { } public static int getType ( String type ) { } No newline ; at end ; of file ; }

Fix:
if ( ( ( point . getPointRect ( ) ) != null ) && ( point . getPointRect ( ) . contains ( X , Y ) ) ) {
Buggy code:
public class PackageTest extends TestCase { public PackageTest ( ) { } public PackageTest ( String arg0 ) { } public void testMD5 ( ) throws Exception { <START_BUG> assertEquals ( "D41D8CD98F00B204E9800998ECF8427E" , MD5HexAssertion . baMD5Hex ( new byte [ ] { } ) . toUpperCase ( ) ) ; <END_BUG> } int threadsRunning ; int failed ; public void testThreadSafety ( ) throws Exception { } class TestThread extends Thread { static final String TEST_STRING = "DAbale<seq2seq4repair_space>arroz<seq2seq4repair_space>a<seq2seq4repair_space>la<seq2seq4repair_space>zorra<seq2seq4repair_space>el<seq2seq4repair_space>abad." ; static final String TEST_PATTERN = ".*A.*\\." ; public void run ( ) { } } public static class XPathAssertionTest extends TestCase { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; XPathAssertion assertion ; SampleResult result ; JMeterVariables vars ; JMeterContext jmctx ; public XPathAssertionTest ( ) { } public XPathAssertionTest ( String name ) { } public void setUp ( ) { } public void testAssertion ( ) throws Exception { } public void testNegateAssertion ( ) throws Exception { } public void testValidationFailure ( ) throws Exception { } public void testValidationSuccess ( ) throws Exception { } public void testValidationFailureWithDTD ( ) throws Exception { } public void testTolerance ( ) throws Exception { } public void testNoTolerance ( ) throws Exception { } } public static class ResponseAssertionTest extends TestCase { private JMeterContext jmctx ; private ResponseAssertion assertion ; private SampleResult sample ; private JMeterVariables vars ; private AssertionResult result ; public void setUp ( ) { } public void testResponseAssertionEquals ( ) throws Exception { } public void testResponseAssertionHeaders ( ) throws Exception { } public void testResponseAssertionContains ( ) throws Exception { } private void assertPassed ( ) throws Exception { } private void assertFailed ( ) throws Exception { } } public static class SizeAssertionTest extends JMeterTestCase { private JMeterContext jmctx ; private SizeAssertion assertion ; private SampleResult sample1 ; private SampleResult sample0 ; private JMeterVariables vars ; private AssertionResult result ; private String data1 = "response<seq2seq4repair_space>Data\n" + "line<seq2seq4repair_space>2\n\nEOF" ; private int data1Len = data1 . length ( ) ; public void setUp ( ) { } public void testSizeAssertionEquals ( ) throws Exception { } public void testSizeAssertionNotEquals ( ) throws Exception { } public void testSizeAssertionGreaterThan ( ) throws Exception { } public void testSizeAssertionGreaterThanEqual ( ) throws Exception { } public void testSizeAssertionLessThan ( ) throws Exception { } public void testSizeAssertionLessThanEqual ( ) throws Exception { } private void assertPassed ( ) throws Exception { } private void assertFailed ( ) throws Exception { } } }

Fix:
assertEquals ( "D41D8CD98F00B204E9800998ECF8427E" , MD5HexAssertion . baMD5Hex ( new byte [ ] { } ) . toUpperCase ( Locale . ENGLISH ) ) ;