nus-yam/ex-repair huggingface dataset:
Buggy code:
public class Check extends WebMarkupContainer { private static final long serialVersionUID = 1L ; private static final String ATTR_DISABLED = "disabled" ; public Check ( String id ) { } public Check ( String id , IModel model ) { } protected void onComponentTag ( final ComponentTag tag ) { super . onComponentTag ( tag ) ; checkComponentTag ( tag , "input" ) ; checkComponentTagAttribute ( tag , "type" , "checkbox" ) ; CheckGroup group = ( ( CheckGroup ) ( findParent ( CheckGroup . class ) ) ) ; String path = getPath ( ) ; if ( group == null ) { throw new WicketRuntimeException ( ( ( "Check<seq2seq4repair_space>component<seq2seq4repair_space>[" + path ) + "]<seq2seq4repair_space>cannot<seq2seq4repair_space>find<seq2seq4repair_space>its<seq2seq4repair_space>parent<seq2seq4repair_space>CheckGroup.<seq2seq4repair_space>All<seq2seq4repair_space>Check<seq2seq4repair_space>components<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>child<seq2seq4repair_space>of<seq2seq4repair_space>or<seq2seq4repair_space>below<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>hierarchy<seq2seq4repair_space>of<seq2seq4repair_space>a<seq2seq4repair_space>CheckGroup<seq2seq4repair_space>component." ) ) ; } String relativePath = path . substring ( ( ( group . getPath ( ) . length ( ) ) + 1 ) ) ; tag . put ( "name" , group . getInputName ( ) ) ; tag . put ( "value" , relativePath ) ; Collection collection = ( ( Collection ) ( group . getModelObject ( ) ) ) ; if ( collection == null ) { throw new WicketRuntimeException ( ( ( "CheckGroup<seq2seq4repair_space>[" + ( group . getPath ( ) ) ) + "]<seq2seq4repair_space>contains<seq2seq4repair_space>a<seq2seq4repair_space>null<seq2seq4repair_space>model<seq2seq4repair_space>object,<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>an<seq2seq4repair_space>object<seq2seq4repair_space>of<seq2seq4repair_space>type<seq2seq4repair_space>java.util.Collection" ) ) ; } if ( group . hasRawInput ( ) ) { String rawInput = group . getRawInput ( ) ; if ( ( rawInput != null ) && ( ( rawInput . indexOf ( relativePath ) ) != ( - 1 ) ) ) { tag . put ( "checked" , "checked" ) ; } } else if ( collection . contains ( getModelObject ( ) ) ) { tag . put ( "checked" , "checked" ) ; } if ( group . wantOnSelectionChangedNotifications ( ) ) { final CharSequence url = group . urlFor ( INTERFACE ) ; Form form = ( ( Form ) ( group . findParent ( Form . class ) ) ) ; if ( form != null ) { tag . put ( "onclick" , form . getJsForInterfaceUrl ( url ) ) ; } else { tag . put ( "onclick" , ( ( ( ( "location.href='" + url ) + "&" ) + ( group . getInputName ( ) ) ) + "='<seq2seq4repair_space>+<seq2seq4repair_space>this.value;" ) ) ; } } <START_BUG> if ( ( ! ( isActionAuthorized ( ENABLE ) ) ) || ( ! ( isEnabled ( ) ) ) ) { <END_BUG> tag . put ( Check . ATTR_DISABLED , Check . ATTR_DISABLED ) ; } } }

Fix:
if ( ( ( ! ( isActionAuthorized ( ENABLE ) ) ) || ( ! ( isEnabled ( ) ) ) ) || ( ! ( group . isEnabled ( ) ) ) ) {
Buggy code:
public class TestCacheModeEnableSelective extends AbstractCacheModeTestCase { private static OpenJPAEntityManagerFactorySPI emf = null ; private static Cache cache = null ; private static List < String > sql = new ArrayList < String > ( ) ; private static JDBCListener listener ; private static Class < ? > [ ] expectedInCache = new Class < ? > [ ] { CacheableEntity . class , XmlCacheableEntity . class , NegatedUncacheableEntity . class } ; private static Class < ? > [ ] expectedNotInCache = new Class < ? > [ ] { UncacheableEntity . class , XmlUncacheableEntity . class , UnspecifiedEntity . class } ; @ Override public OpenJPAEntityManagerFactorySPI getEntityManagerFactory ( ) { if ( ( TestCacheModeEnableSelective . emf ) == null ) { <START_BUG> TestCacheModeEnableSelective . emf = createEntityManagerFactory ( "cache-mode-enable" ) ; <END_BUG> assertNotNull ( TestCacheModeEnableSelective . emf ) ; TestCacheModeEnableSelective . cache = TestCacheModeEnableSelective . emf . getCache ( ) ; assertNotNull ( TestCacheModeEnableSelective . cache ) ; } return TestCacheModeEnableSelective . emf ; } public JDBCListener getListener ( ) { } public List < String > getSql ( ) { } @ Override protected Class < ? > [ ] getExpectedInCache ( ) { } @ Override protected Class < ? > [ ] getExpectedNotInCache ( ) { } public void testCacheables ( ) { } public void testUncacheables ( ) { } public void testUnspecified ( ) { } }

Fix:
TestCacheModeEnableSelective . emf = createEntityManagerFactory ( "cache-mode-enable" , null ) ;
Buggy code:
public class ConversionHelp { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final String CHAR_SET = "UTF-8" ; public static final String ATT_CLASS = "class" ; public static final String ATT_NAME = "name" ; public static final String ATT_ELEMENT_TYPE = "elementType" ; private static final String ATT_TE_ENABLED = "enabled" ; private static final String ATT_TE_TESTCLASS = "testclass" ; static final String ATT_TE_GUICLASS = "guiclass" ; private static final String ATT_TE_NAME = "testname" ; private static String inVersion ; private static String outVersion = "1.1" ; public static void setInVersion ( String v ) { } public static void setOutVersion ( String v ) { } public static String encode ( String p ) { } public static String decode ( String p ) { } public static String cdata ( byte [ ] chars , String encoding ) throws UnsupportedEncodingException { } private static final Map < String , String > propertyToAttribute = new HashMap < String , String > ( ) ; private static void mapentry ( String prop , String att ) { } private static void saveClass ( TestElement el , HierarchicalStreamWriter writer , String prop ) { } private static void restoreClass ( TestElement el , HierarchicalStreamReader reader , String prop ) { } private static void saveItem ( TestElement el , HierarchicalStreamWriter writer , String prop , boolean encode ) { } private static void restoreItem ( TestElement el , HierarchicalStreamReader reader , String prop , boolean decode ) { } public static boolean isSpecialProperty ( String name ) { } public static String getPropertyName ( HierarchicalStreamReader reader , UnmarshallingContext context ) { } public static String getPropertyValue ( HierarchicalStreamReader reader , UnmarshallingContext context , String name ) { } public static String getUpgradePropertyName ( String name , UnmarshallingContext context ) { String testClass = ( ( String ) ( context . get ( TEST_CLASS_NAME ) ) ) ; final String newName = NameUpdater . getCurrentName ( name , testClass ) ; if ( ( ( name . length ( ) ) != 0 ) && ( ( newName . length ( ) ) == 0 ) ) { return null ; } <START_BUG> return name ; <END_BUG> } public static String getUpgradePropertyValue ( String name , String value , UnmarshallingContext context ) { } public static void saveSpecialProperties ( TestElement testElement , HierarchicalStreamWriter writer ) { } public static void restoreSpecialProperties ( TestElement testElement , HierarchicalStreamReader reader ) { } }

Fix:
return newName ;
Buggy code:
public class AnalysisAfterCoreReloadTest extends SolrTestCaseJ4 { private static String tmpSolrHome ; int port = 0 ; static final String context = "//solr" ; static final String collection = "collection1" ; @ BeforeClass public static void beforeClass ( ) throws Exception { } @ AfterClass public static void AfterClass ( ) throws Exception { } public void testStopwordsAfterCoreReload ( ) throws Exception { } private void overwriteStopwords ( String stopwords ) throws IOException { SolrCore core = h . getCoreContainer ( ) . getCore ( AnalysisAfterCoreReloadTest . collection ) ; try { String configDir = core . getResourceLoader ( ) . getConfigDir ( ) ; FileUtils . moveFile ( new File ( configDir , "stopwords.txt" ) , new File ( configDir , "stopwords.txt.bak" ) ) ; File file = new File ( configDir , "stopwords.txt" ) ; <START_BUG> FileUtils . writeStringToFile ( file , stopwords ) ; <END_BUG> } finally { core . close ( ) ; } } @ Override public void tearDown ( ) throws Exception { } protected SolrServer getSolrCore ( ) { } }

Fix:
FileUtils . writeStringToFile ( file , stopwords , "UTF-8" ) ;
Buggy code:
public class PackageResourceTest extends TestCase { public MockWebApplication application ; public PackageResourceTest ( ) { } public PackageResourceTest ( String name ) { } protected void setUp ( ) throws Exception { } public void testBindAbsolutePackageResource ( ) throws Exception { } public void testBindGlobPackageResource ( ) throws Exception { final SharedResources sharedResources = Application . get ( ) . getSharedResources ( ) ; <START_BUG> PackageResource . bind ( application , PackageResourceTest . class , Pattern . compile ( ".*\\.js" ) ) ; <END_BUG> assertNotNull ( "resource<seq2seq4repair_space>packaged3.js<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>available<seq2seq4repair_space>as<seq2seq4repair_space>a<seq2seq4repair_space>packaged<seq2seq4repair_space>resource" , sharedResources . get ( PackageResourceTest . class , "packaged3.js" , null , null , true ) ) ; assertNotNull ( "resource<seq2seq4repair_space>packaged4.js<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>available<seq2seq4repair_space>as<seq2seq4repair_space>a<seq2seq4repair_space>packaged<seq2seq4repair_space>resource" , sharedResources . get ( PackageResourceTest . class , "packaged4.js" , null , null , true ) ) ; assertNull ( "resource<seq2seq4repair_space>packaged2.txt<seq2seq4repair_space>should<seq2seq4repair_space>NOT<seq2seq4repair_space>be<seq2seq4repair_space>available<seq2seq4repair_space>as<seq2seq4repair_space>a<seq2seq4repair_space>packaged<seq2seq4repair_space>resource" , sharedResources . get ( PackageResourceTest . class , "packaged2.txt" , null , null , true ) ) ; } }

Fix:
PackageResource . bind ( application , PackageResourceTest . class , Pattern . compile ( ".*\\.js" ) , false ) ;
Buggy code:
public abstract class AbsRecyclerViewFastScroller extends FrameLayout implements RecyclerViewScroller { private static final int [ ] STYLEABLE = styleable . AbsRecyclerViewFastScroller ; protected final View mBar ; protected final View mHandle ; private RecyclerView mRecyclerView ; private SectionIndicator mSectionIndicator ; protected OnScrollListener mOnScrollListener ; public AbsRecyclerViewFastScroller ( Context context ) { } public AbsRecyclerViewFastScroller ( Context context , AttributeSet attrs ) { } public AbsRecyclerViewFastScroller ( Context context , AttributeSet attrs , int defStyleAttr ) { } private void applyCustomAttributesToView ( View view , Drawable drawable , int color ) { } public void setHandleColor ( int color ) { } public void setHandleBackground ( Drawable drawable ) { } public void setBarColor ( int color ) { } public void setBarBackground ( Drawable drawable ) { } @ TargetApi ( VERSION_CODES . JELLY_BEAN ) private void setViewBackground ( View view , Drawable background ) { } @ Override public void setRecyclerView ( RecyclerView recyclerView ) { } public void setSectionIndicator ( SectionIndicator sectionIndicator ) { } @ Nullable public SectionIndicator getSectionIndicator ( ) { } @ Override public void scrollTo ( float scrollProgress , boolean fromTouch ) { } private void updateSectionIndicator ( int position , float scrollProgress ) { } private int getPositionFromScrollProgress ( float scrollProgress ) { } @ NonNull public OnScrollListener getOnScrollListener ( ) { if ( ( mOnScrollListener ) == null ) { mOnScrollListener = new OnScrollListener ( ) { @ Override public void onScrolled ( RecyclerView recyclerView , int dx , int dy ) { TouchableScrollProgressCalculator scrollProgressCalculator = getScrollProgressCalculator ( ) ; if ( scrollProgressCalculator != null ) { <START_BUG> float scrollProgress = getScrollProgressCalculator ( ) . calculateScrollProgress ( recyclerView ) ; <END_BUG> moveHandleToPosition ( scrollProgress ) ; } } } ; } return mOnScrollListener ; } @ Override protected void onLayout ( boolean changed , int left , int top , int right , int bottom ) { } protected abstract void onCreateScrollProgressCalculator ( ) { } public float getScrollProgress ( MotionEvent event ) { } protected abstract int getLayoutResourceId ( ) { } protected abstract TouchableScrollProgressCalculator getScrollProgressCalculator ( ) { } public abstract void moveHandleToPosition ( float scrollProgress ) { } No newline ; at end ; of file ; }

Fix:
float scrollProgress = scrollProgressCalculator . calculateScrollProgress ( recyclerView ) ;
Buggy code:
class CheckBoxListModel extends AbstractTableModel { Vector items ; CheckBoxListModel ( Vector _items ) { } CheckBoxListModel ( Object [ ] _items ) { } private JCheckBoxList . Entry createEntry ( Object obj ) { } public int getRowCount ( ) { } public int getColumnCount ( ) { } public String getColumnName ( int col ) { } public Object getValueAt ( int row , int col ) { JCheckBoxList . Entry entry = ( ( JCheckBoxList . Entry ) ( items . elementAt ( row ) ) ) ; switch ( col ) { case 0 : <START_BUG> return Boolean . valueOf ( entry . checked ) ; <END_BUG> case 1 : return entry . value ; default : throw new InternalError ( ) ; } } public Class getColumnClass ( int col ) { } public boolean isCellEditable ( int row , int col ) { } public void setValueAt ( Object value , int row , int col ) { } }

Fix:
return new Boolean ( entry . checked ) ;
Buggy code:
public class TestTermsEnum2 extends LuceneTestCase { private Directory dir ; private IndexReader reader ; private IndexSearcher searcher ; private SortedSet < BytesRef > terms ; private Automaton termsAutomaton ; int numIterations ; public void setUp ( ) throws Exception { super . setUp ( ) ; numIterations = ( Codec . getDefault ( ) . getName ( ) . equals ( "Lucene3x" ) ) ? 10 * ( RANDOM_MULTIPLIER ) : atLeast ( 50 ) ; dir = newDirectory ( ) ; RandomIndexWriter writer = new RandomIndexWriter ( random , dir , newIndexWriterConfig ( TEST_VERSION_CURRENT , new org . apache . lucene . analysis . MockAnalyzer ( random , MockTokenizer . KEYWORD , false ) ) . setMaxBufferedDocs ( _TestUtil . nextInt ( random , 50 , 1000 ) ) ) ; Document doc = new Document ( ) ; Field field = newField ( "field" , "" , TYPE_STORED ) ; doc . add ( field ) ; terms = new TreeSet < BytesRef > ( ) ; int num = atLeast ( 200 ) ; for ( int i = 0 ; i < num ; i ++ ) { String s = _TestUtil . randomUnicodeString ( random ) ; <START_BUG> field . setValue ( s ) ; <END_BUG> terms . add ( new BytesRef ( s ) ) ; writer . addDocument ( doc ) ; } termsAutomaton = DaciukMihovAutomatonBuilder . build ( terms ) ; reader = writer . getReader ( ) ; searcher = newSearcher ( reader ) ; writer . close ( ) ; } public void tearDown ( ) throws Exception { } public void testFiniteVersusInfinite ( ) throws Exception { } public void testSeeking ( ) throws Exception { } public void testSeekingAndNexting ( ) throws Exception { } public void testIntersect ( ) throws Exception { } }

Fix:
field . setStringValue ( s ) ;
Buggy code:
public abstract class PermissionClass implements PermissionSet { private boolean setup = false ; public final Permissions plugin ; public final World world ; PermissionClass ( World world , Permissions plugin ) { } @ Override public final void addGroup ( Player player , String group ) { } @ Override public final void addGroup ( String player , String group ) { } @ Override public final void addNode ( String node , String group ) { } public final ArrayList < String > getDefaultArrayList ( ) { } @ Override public final List < String > getGroups ( Player player ) { } @ Override public final List < String > getPlayerNodes ( Player player ) { } @ Override public final List < String > getPlayerNodes ( String player ) { } @ Override public final World getWorld ( ) { } public final boolean has ( Player player , String node ) { } public final void log ( Object input ) { } @ Override public final void removeGroup ( Player player , String group ) { } @ Override public final void removeGroup ( String player , String group ) { } @ Override public final void removeNode ( String node , String group ) { } @ Override public final void setGroup ( Player player , String group ) { } @ Override public final void setGroup ( String player , String group ) { } @ Override public final void setGroups ( Player player , List < String > groups ) { } @ Override public void setGroups ( String player , List < String > groups ) { } @ Override public void setNodes ( String group , List < String > nodes ) { } @ Override public final void setup ( ) { } @ Override public final void setupPlayer ( Player player ) { } @ Override public final void setupPlayer ( String player ) { Player p = plugin . getServer ( ) . getPlayer ( player ) ; if ( p != null ) <START_BUG> setupPlayer ( player ) ; <END_BUG> } @ Override public final void setupPlayers ( ) { } public String parse ( List < String > rList ) { } }

Fix:
setupPlayer ( p ) ;
Buggy code:
public class PolynomialsUtilsTest extends TestCase { public void testFirstChebyshevPolynomials ( ) { } public void testChebyshevBounds ( ) { } public void testChebyshevDifferentials ( ) { } public void testFirstHermitePolynomials ( ) { } public void testHermiteDifferentials ( ) { } public void testFirstLaguerrePolynomials ( ) { } public void testLaguerreDifferentials ( ) { } public void testFirstLegendrePolynomials ( ) { } public void testLegendreDifferentials ( ) { } public void testHighDegreeLegendre ( ) { PolynomialsUtils . createLegendrePolynomial ( 40 ) ; double [ ] l40 = PolynomialsUtils . createLegendrePolynomial ( 40 ) . getCoefficients ( ) ; double denominator = 2.74877906944E11 ; double [ ] numerators = new double [ ] { + 3.4461632205E10 , - 2.82585384081E13 , + 3.84787097990295E15 , - 2.07785032914759296E17 , + 5.9292943321033103E18 , - 1.0330148347486655E20 , + 1.197358103913226E21 , - 9.763073770369382E21 , + 5.817164788178423E22 , - 2.6006148464797657E23 , + 8.883152817712462E23 , - 2.3457676271881395E24 , + 4.8190226254191124E24 , - 7.71043620067058E24 , + 9.566652323054239E24 , - 9.104813935044723E24 , + 6.516550296251767E24 , - 3.391858621221954E24 , + 1.2113780790078407E24 , - 2.6536589497469058E23 , + 2.6876802183334046E22 } ; for ( int i = 0 ; i < ( l40 . length ) ; ++ i ) { if ( ( i % 2 ) == 0 ) { double ci = ( numerators [ ( i // 2 ) ] ) // denominator ; <START_BUG> assertEquals ( ci , l40 [ i ] , ( ci * 1.0E-15 ) ) ; <END_BUG> } else { assertEquals ( 0.0 , l40 [ i ] , 0.0 ) ; } } } private void checkPolynomial ( PolynomialFunction p , long denominator , String reference ) { } private void checkPolynomial ( PolynomialFunction p , String reference ) { } private void checkNullPolynomial ( PolynomialFunction p ) { } }

Fix:
assertEquals ( ci , l40 [ i ] , ( ( Math . abs ( ci ) ) * 1.0E-15 ) ) ;
Buggy code:
public class GhciEvaluator extends Evaluator { public GhciEvaluator ( ) throws HaskellException { } @ Override protected List < String > getCommand ( ) { <START_BUG> return ImmutableList . of ( "ghci" , "-ignore-dot-ghci" ) ; <END_BUG> } @ Override protected List < String > getModules ( ) { } @ Override protected String getCatalogPath ( ) { } }

Fix:
return ImmutableList . of ( "ghci" , "-ignore-dot-ghci" , "-fno-warn-overlapping-patterns" ) ;
Buggy code:
@ Stateless public class ProductBean implements IProduct { @ EJB private IProductDAO productDAO ; @ EJB private IStampDAO stampDAO ; @ EJB private IUserDAO userDAO ; @ EJB private ICartDAO cartDAO ; @ EJB private IRatingDAO ratingDAO ; @ Override public void insertProduct ( ProductJson productJson ) { } @ Override public ProductJson getProduct ( Long id ) { } @ Override public void setRating ( RatingJson ratingJson ) { Rating rating = ratingDAO . getRatingByProduct ( ratingJson . getProductId ( ) ) ; if ( rating != null ) { rating . setRatings ( ( ( rating . getRatings ( ) ) + 1 ) ) ; <START_BUG> rating . setAverageRating ( ( ( ( ( ( rating . getAverageRating ( ) ) * ( rating . getRatings ( ) ) ) - 1 ) + ( ratingJson . getCalification ( ) ) ) // ( rating . getRatings ( ) ) ) ) ; <END_BUG> ratingDAO . updateRating ( rating ) ; } else { rating = new Rating ( ) ; rating . setAverageRating ( ratingJson . getCalification ( ) ) ; rating . setRatings ( 1 ) ; rating . setProduct ( productDAO . getProduct ( ratingJson . getProductId ( ) ) ) ; rating . getProduct ( ) . setRating ( rating ) ; ratingDAO . saveRating ( rating ) ; productDAO . updateProduct ( rating . getProduct ( ) ) ; } } @ Override public ProductsByRatingJson getByRatings ( Double lowerBound , Double upperBound ) { } @ Override public List < ProductJson > getAllProducts ( ) { } @ Override public ProductJson insertProductAdmin ( ProductJson productJson ) { } private void addProductToCart ( Product product ) { } }

Fix:
rating . setAverageRating ( ( ( ( ( rating . getAverageRating ( ) ) * ( ( rating . getRatings ( ) ) - 1 ) ) + ( ratingJson . getCalification ( ) ) ) // ( rating . getRatings ( ) ) ) ) ;
Buggy code:
public class ComparatorTests extends TestCase { public void testComparableComparator ( ) { } public void testComparableComparatorIllegalArgs ( ) { Comparator c = new ComparableComparator ( ) ; Object o1 = new Object ( ) ; Object o2 = new Object ( ) ; try { c . compare ( o1 , o2 ) ; <START_BUG> } catch ( IllegalArgumentException e ) { <END_BUG> return ; } fail ( "Comparator<seq2seq4repair_space>should<seq2seq4repair_space>have<seq2seq4repair_space>thrown<seq2seq4repair_space>a<seq2seq4repair_space>cce" ) ; } public void testBooleanComparatorTrueLow ( ) { } public void testBooleanComparatorTrueHigh ( ) { } public void testPropertyComparator ( ) { } public void testPropertyComparatorNulls ( ) { } public void testNullSafeComparatorNullsLow ( ) { } public void testNullSafeComparatorNullsHigh ( ) { } public void testCompoundComparatorEmpty ( ) { } public void testCompoundComparator ( ) { } public void testCompoundComparatorInvert ( ) { } private static class Dog implements Comparable { private String nickName ; private String firstName ; private String lastName ; public int compareTo ( Object o ) { } public String getNickName ( ) { } public void setNickName ( String nickName ) { } public String getFirstName ( ) { } public void setFirstName ( String firstName ) { } public String getLastName ( ) { } public void setLastName ( String lastName ) { } } }

Fix:
} catch ( ClassCastException e ) {
Buggy code:
public final class XMLStorage { private static final String STORAGE_LOCATION = ( ( System . getProperty ( "user.home" ) ) + ( File . separator ) ) + "history.xml" ; private static final String METHOD = "method" ; private static final String MESSAGES = "messages" ; private static final String MESSAGE = "message" ; private static final String EXPRESSION_MESSAGE = "//messages//message" ; private XMLStorage ( ) { } public static synchronized void createStorage ( ) throws ParserConfigurationException , TransformerException { } public static synchronized void addData ( Message message , String method ) throws IOException , ParserConfigurationException , TransformerException , SAXException { } public static synchronized void updateData ( Message message ) throws IOException , ParserConfigurationException , TransformerException , XPathExpressionException , SAXException { } public static synchronized void deleteData ( Message message ) throws IOException , ParserConfigurationException , TransformerException , XPathExpressionException , SAXException { } public static synchronized boolean isExist ( ) { } public static synchronized List < Message > getListMessages ( ) throws IOException , ParserConfigurationException , SAXException { } private static synchronized List < Message > getListMessages ( NodeList nodeList ) { } public static synchronized List < Message > getSubNodeList ( int index ) throws IOException , ParserConfigurationException , XPathExpressionException , SAXException { DocumentBuilderFactory builderFactory = DocumentBuilderFactory . newInstance ( ) ; DocumentBuilder builder = builderFactory . newDocumentBuilder ( ) ; Document document = builder . parse ( new FileInputStream ( XMLStorage . STORAGE_LOCATION ) ) ; XPath xpath = XPathFactory . newInstance ( ) . newXPath ( ) ; <START_BUG> String expression = ( ( ( XMLStorage . EXPRESSION_MESSAGE ) + "[position()<seq2seq4repair_space>>=<seq2seq4repair_space>" ) + index ) + "]" ; <END_BUG> return XMLStorage . getListMessages ( ( ( NodeList ) ( xpath . compile ( expression ) . evaluate ( document , XPathConstants . NODESET ) ) ) ) ; } public static synchronized int getStorageSize ( ) throws IOException , ParserConfigurationException , SAXException { } private static Node getNodeById ( Document doc , String id ) throws XPathExpressionException { } private static Transformer getTransformer ( ) throws TransformerConfigurationException { } No newline ; at end ; of file ; }

Fix:
String expression = ( ( ( XMLStorage . EXPRESSION_MESSAGE ) + "[position()<seq2seq4repair_space>><seq2seq4repair_space>" ) + index ) + "]" ;
Buggy code:
public interface ModelControllerClient extends Closeable { <START_BUG> Cancellable execute ( ModelNode operation , ResultHandler handler ) ; <END_BUG> ModelNode execute ( ModelNode operation ) throws IOException , CancellationException { } class Factory { public static ModelControllerClient create ( final ModelControllerClient . Type type , final InetAddress address , final int port ) { } public static ModelControllerClient create ( final ModelControllerClient . Type type , final Connection connection ) { } } enum Type { STANDALONE ( ( ( byte ) ( 1 ) ) ) , HOST ( ( ( byte ) ( 2 ) ) ) , DOMAIN ( ( ( byte ) ( 3 ) ) ) ; private final byte handlerId ; Type ( final byte handlerId ) { } public byte getHandlerId ( ) { } } }

Fix:
OperationResult execute ( ModelNode operation , ResultHandler handler ) ;
Buggy code:
public class NormalAnnotation extends Annotation { public MemberValuePair [ ] memberValuePairs ; public NormalAnnotation ( TypeReference type , int sourceStart ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } TypeBinding internalResolveType ( TypeBinding annotationType , Scope scope ) { if ( ( super . internalResolveType ( annotationType , scope ) ) == null ) return null ; <START_BUG> checkMemberValues ( this . memberValuePairs , scope ) ; <END_BUG> return this . resolvedType ; } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } public void traverse ( ASTVisitor visitor , ClassScope scope ) { } public void traverse ( ASTVisitor visitor , CompilationUnitScope scope ) { } }

Fix:
checkMemberValues ( ( ( this . memberValuePairs ) == null ? Annotation . NoValuePairs : this . memberValuePairs ) , scope ) ;
Buggy code:
public class Javac13 extends DefaultCompilerAdapter { private static final int MODERN_COMPILER_SUCCESS = 0 ; public boolean execute ( ) throws BuildException { attributes . log ( "Using<seq2seq4repair_space>modern<seq2seq4repair_space>compiler" , MSG_VERBOSE ) ; Commandline cmd = setupModernJavacCommand ( ) ; try { Class c = Class . forName ( "com.sun.tools.javac.Main" ) ; Object compiler = c . newInstance ( ) ; Method compile = c . getMethod ( "compile" , new Class [ ] { new String [ ] { } . getClass ( ) } ) ; int result = ( ( Integer ) ( compile . invoke ( compiler , new Object [ ] { cmd . getArguments ( ) } ) ) ) . intValue ( ) ; return result == ( Javac13 . MODERN_COMPILER_SUCCESS ) ; } catch ( Exception ex ) { if ( ex instanceof BuildException ) { throw ( ( BuildException ) ( ex ) ) ; } else { <START_BUG> throw new BuildException ( "Error<seq2seq4repair_space>starting<seq2seq4repair_space>modern<seq2seq4repair_space>compiler" , ex , location ) ; <END_BUG> } } } }

Fix:
throw new BuildException ( "Error<seq2seq4repair_space>starting<seq2seq4repair_space>modern<seq2seq4repair_space>compiler" , ex ) ;
Buggy code:
public class JDTCompilerAdapter extends DefaultCompilerAdapter { private static String compilerClass = "org.eclipse.jdt.internal.compiler.batch.Main" ; String logFileName ; public boolean execute ( ) throws BuildException { this . attributes . log ( AntAdapterMessages . getString ( "ant.jdtadapter.info.usingJDTCompiler" ) , MSG_VERBOSE ) ; Commandline cmd = setupJavacCommand ( ) ; try { Class c = Class . forName ( JDTCompilerAdapter . compilerClass ) ; Constructor batchCompilerConstructor = c . getConstructor ( new Class [ ] { PrintWriter . class , PrintWriter . class , Boolean . TYPE } ) ; <START_BUG> Object batchCompilerInstance = batchCompilerConstructor . newInstance ( new Object [ ] { new PrintWriter ( System . out ) , new PrintWriter ( System . err ) , new Boolean ( true ) } ) ; <END_BUG> Method compile = c . getMethod ( "compile" , new Class [ ] { String [ ] . class } ) ; Object result = compile . invoke ( batchCompilerInstance , new Object [ ] { cmd . getArguments ( ) } ) ; final boolean resultValue = ( ( Boolean ) ( result ) ) . booleanValue ( ) ; if ( ( ! resultValue ) && ( this . verbose ) ) { System . out . println ( AntAdapterMessages . getString ( "ant.jdtadapter.error.compilationFailed" , this . logFileName ) ) ; } return resultValue ; } catch ( ClassNotFoundException cnfe ) { throw new BuildException ( AntAdapterMessages . getString ( "ant.jdtadapter.error.cannotFindJDTCompiler" ) ) ; } catch ( Exception ex ) { throw new BuildException ( ex ) ; } } protected Commandline setupJavacCommand ( ) throws BuildException { } private void addExtdirs ( Path extDirs , Path classpath ) { } }

Fix:
Object batchCompilerInstance = batchCompilerConstructor . newInstance ( new Object [ ] { new PrintWriter ( System . out ) , new PrintWriter ( System . err ) , Boolean . valueOf ( true ) } ) ;
Buggy code:
public class Label extends Control { String text ; Image image ; boolean isImage ; NSTextField textView ; NSImageView imageView ; public Label ( Composite parent , int style ) { } int accessibilityAttributeNames ( int id , int sel ) { } boolean accessibilityIsIgnored ( int id , int sel ) { } void addRelation ( Control control ) { } static int checkStyle ( int style ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } void createWidget ( ) { } NSAttributedString createString ( ) { <START_BUG> NSAttributedString attribStr = createString ( text , null , foreground , ( ( ( style ) & ( SWT . WRAP ) ) == 0 ? style : 0 ) , true ) ; <END_BUG> attribStr . autorelease ( ) ; return attribStr ; } NSFont defaultNSFont ( ) { } void deregister ( ) { } NSView eventView ( ) { } public int getAlignment ( ) { } public Image getImage ( ) { } String getNameText ( ) { } public String getText ( ) { } boolean isDescribedByLabel ( ) { } void register ( ) { } void releaseHandle ( ) { } void removeRelation ( ) { } public void setAlignment ( int alignment ) { } void updateBackground ( ) { } void _setAlignment ( ) { } void setFont ( NSFont font ) { } void setForeground ( float [ ] color ) { } boolean setTabItemFocus ( ) { } public void setImage ( Image image ) { } public void setText ( String string ) { } }

Fix:
NSAttributedString attribStr = createString ( text , null , foreground , ( ( ( style ) & ( SWT . WRAP ) ) == 0 ? style : 0 ) , true , true ) ;
Buggy code:
public class BinomialDistributionTest extends TestCase { private BinomialDistribution b ; public BinomialDistributionTest ( String name ) { } protected void setUp ( ) throws Exception { super . setUp ( ) ; <START_BUG> b = DistributionFactory . newInstance ( ) . createBinomailDistribution ( 10 , 0.7 ) ; <END_BUG> } protected void tearDown ( ) throws Exception { } public void testInverseCummulativeProbability001 ( ) { } public void testInverseCumulativeProbability010 ( ) { } public void testInverseCumulativeProbability025 ( ) { } public void testInverseCumulativeProbability050 ( ) { } public void testInverseCumulativeProbability100 ( ) { } public void testInverseCummulativeProbability999 ( ) { } public void testInverseCumulativeProbability990 ( ) { } public void testInverseCumulativeProbability975 ( ) { } public void testInverseCumulativeProbability950 ( ) { } public void testInverseCumulativeProbability900 ( ) { } public void testCummulativeProbability1 ( ) { } public void testCumulativeProbability2 ( ) { } public void testCumulativeProbability3 ( ) { } public void testCumulativeProbability4 ( ) { } public void testCumulativeProbability9 ( ) { } public void testCummulativeProbability8 ( ) { } private void testProbability ( int x , double expected ) { } private void testValue ( int expected , double p ) { } }

Fix:
b = DistributionFactory . newInstance ( ) . createBinomialDistribution ( 10 , 0.7 ) ;
Buggy code:
public abstract class ContainerAbstractTestCase extends ECFAbstractTestCase { protected String genericServerName = "ecf.generic.server" ; protected String genericClientName = "ecf.generic.client" ; protected int genericServerPort = 30000 ; protected String genericServerIdentity = "ecftcp:////localhost:{0}//server" ; protected IContainer server ; protected IContainer [ ] clients ; protected int clientCount = 1 ; protected ID serverID ; protected String [ ] usernames = null ; protected String [ ] passwords = null ; protected void setUp ( ) throws Exception { } private void findEmptySocket ( ) { } protected String getUsername ( int client ) { } protected String getPassword ( int client ) { } protected IConnectContext createUsernamePasswordConnectContext ( String username , String password ) { } protected IConnectContext createPasswordConnectContext ( String password ) { } protected void setClientCount ( int count ) { } protected IContainer getServer ( ) { } protected IContainer [ ] getClients ( ) { } protected IContainer getClient ( int index ) { } protected String getServerContainerName ( ) { } protected String getClientContainerName ( ) { } protected String getServerIdentity ( ) { } protected ID getServerConnectID ( int client ) { } protected ID getServerCreateID ( ) { } protected int getClientCount ( ) { } protected ID createServerID ( ) throws Exception { } protected IContainer createServer ( ) throws Exception { <START_BUG> return ContainerFactory . getDefault ( ) . createContainer ( getServerContainerName ( ) , new Object [ ] { getServerCreateID ( ) } ) ; <END_BUG> } protected IContainer [ ] createClients ( ) throws Exception { } protected void loadUsernamesAndPasswords ( ) { } protected IContainer createClient ( int index ) throws Exception { } protected void createServerAndClients ( ) throws Exception { } protected void removeFromContainerManager ( IContainer container ) { } protected void cleanUpClients ( ) { } protected void cleanUpServerAndClients ( ) { } protected void connectClients ( ) throws Exception { } protected IConnectContext getConnectContext ( int client ) { } protected void connectClient ( IContainer containerToConnect , ID connectID , IConnectContext context ) throws ContainerConnectException { } protected void connectClient ( int client ) throws ContainerConnectException { } protected void disconnectClients ( ) throws Exception { } protected void assertHasEvent ( Collection collection , Class eventType ) { } protected void assertHasEventCount ( Collection collection , Class eventType , int eventCount ) { } protected void assertHasMoreThanEventCount ( Collection collection , Class eventType , int eventCount ) { } }

Fix:
return ContainerFactory . getDefault ( ) . createContainer ( getServerContainerName ( ) , new Object [ ] { serverID } ) ;
Buggy code:
public class MovieFragment extends Fragment { private LinearLayout mLinearLayout ; private FragmentActivity mActivity ; private RecyclerView mRecyclerView ; private SwipeRefreshLayout mSwipeRefreshLayout ; private MovieAdapter mAdapter ; private ArrayList < Movie > movieList ; private static final String LIST_STATE_KEY = "list_state" ; private static final String MENU_CHECKED_STATE = "checked" ; private static final String MENU_SORT_ORDER = "sort_order" ; private static final String VIEW_STATE_KEY = "view_state" ; private static final int VIEW_STATE_ERROR = 0 ; private static final int VIEW_STATE_RESULTS = 1 ; public MovieFragment ( ) { } @ Override public void onAttach ( Activity activity ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onSaveInstanceState ( Bundle outState ) { } @ Override public void onCreateOptionsMenu ( Menu menu , MenuInflater inflater ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { } private onItemClickListener itemClickListener = new onItemClickListener ( ) { @ Override public void onItemClick ( View v , int position ) { } } ; @ Override public void onViewCreated ( View view , Bundle savedInstanceState ) { super . onViewCreated ( view , savedInstanceState ) ; mRecyclerView . setHasFixedSize ( true ) ; int i ; switch ( getResources ( ) . getConfiguration ( ) . orientation ) { case Configuration . ORIENTATION_PORTRAIT : i = 2 ; break ; case Configuration . ORIENTATION_LANDSCAPE : i = 3 ; break ; default : i = 2 ; } RecyclerView . LayoutManager mLayoutManager = new android . support . v7 . widget . GridLayoutManager ( getActivity ( ) , i ) ; mRecyclerView . setLayoutManager ( mLayoutManager ) ; mSwipeRefreshLayout . setColorSchemeResources ( accent_color , primary_color ) ; mSwipeRefreshLayout . setOnRefreshListener ( new SwipeRefreshLayout . OnRefreshListener ( ) { @ Override public void onRefresh ( ) { <START_BUG> if ( ( mRecyclerView . getAdapter ( ) ) != null ) { <END_BUG> mSwipeRefreshLayout . setRefreshing ( false ) ; Toast . makeText ( getActivity ( ) , movies_already_loaded_message , LENGTH_SHORT ) . show ( ) ; } else { loadMovieData ( ) ; } } } ) ; } public void loadMovieData ( ) { } private boolean isOnline ( ) { } private void showErrorView ( ) { } private void showResultView ( ) { } public class FetchMovieTask extends AsyncTask < String , Void , List < Movie > > { private final String LOG_TAG = MovieFragment . FetchMovieTask . class . getSimpleName ( ) ; @ Override protected void onPreExecute ( ) { } protected List < Movie > doInBackground ( String ... params ) { } private List < Movie > getMovieDataFromJson ( String MovieJsonStr ) throws JSONException { } private String getGenre ( String genreId ) { } @ Override protected void onPostExecute ( List < Movie > movies ) { } } }

Fix:
if ( ( mRecyclerView . getVisibility ( ) ) == ( View . VISIBLE ) ) {
Buggy code:
public class ListedHashTree extends HashTree implements Serializable , Cloneable { private static final long serialVersionUID = 240L ; private final List < Object > order ; public ListedHashTree ( ) { } public ListedHashTree ( Object key ) { } public ListedHashTree ( Collection < ? > keys ) { } public ListedHashTree ( Object [ ] keys ) { } @ Override public Object clone ( ) { } @ Override public void set ( Object key , Object value ) { } @ Override public void set ( Object key , HashTree t ) { } @ Override public void set ( Object key , Object [ ] values ) { } @ Override public void set ( Object key , Collection < ? > values ) { } @ Override public void replace ( Object currentKey , Object newKey ) { } @ Override public HashTree createNewTree ( ) { } @ Override public HashTree createNewTree ( Object key ) { } @ Override public HashTree createNewTree ( Collection < ? > values ) { } @ Override public HashTree add ( Object key ) { } @ Override public Collection < Object > list ( ) { } @ Override <START_BUG> public Object remove ( Object key ) { <END_BUG> order . remove ( key ) ; return data . remove ( key ) ; } @ Override public Object [ ] getArray ( ) { } @ Override public int hashCode ( ) { } @ Override public boolean equals ( Object o ) { } @ Override public Set < Object > keySet ( ) { } @ Override public int size ( ) { } private void readObject ( ObjectInputStream ois ) throws IOException , ClassNotFoundException { } private void writeObject ( ObjectOutputStream oos ) throws IOException { } @ Override public void clear ( ) { } }

Fix:
public HashTree remove ( Object key ) {
Buggy code:
interface MessageHandler { <START_BUG> void processMessage ( final Channel channel , final MessageInputStream messageInputStream ) throws IOException ; <END_BUG> }

Fix:
void processMessage ( final ChannelAssociation channelAssociation , final MessageInputStream messageInputStream ) throws IOException ;
Buggy code:
public class UnrecognizedExtraField implements ZipExtraField { private ZipShort headerId ; public void setHeaderId ( ZipShort headerId ) { } public ZipShort getHeaderId ( ) { } private byte [ ] localData ; public void setLocalFileDataData ( byte [ ] data ) { } public ZipShort getLocalFileDataLength ( ) { <START_BUG> return new ZipShort ( localData . length ) ; <END_BUG> } public byte [ ] getLocalFileDataData ( ) { } private byte [ ] centralData ; public void setCentralDirectoryData ( byte [ ] data ) { } public ZipShort getCentralDirectoryLength ( ) { } public byte [ ] getCentralDirectoryData ( ) { } public void parseFromLocalFileData ( byte [ ] data , int offset , int length ) { } public void parseFromCentralDirectoryData ( byte [ ] data , int offset , int length ) { } }

Fix:
return new ZipShort ( ( ( localData ) != null ? localData . length : 0 ) ) ;
Buggy code:
public class LearnHamCommand extends FolderCommand { public LearnHamCommand ( DefaultCommandReference [ ] references ) { } public LearnHamCommand ( AbstractFrameController frame , DefaultCommandReference [ ] references ) { } public void execute ( Worker worker ) throws Exception { FolderCommandReference [ ] r = ( ( FolderCommandReference [ ] ) ( getReferences ( ) ) ) ; FolderCommandAdapter adapter = new FolderCommandAdapter ( r ) ; Folder srcFolder = ( ( Folder ) ( adapter . getSourceFolderReferences ( ) [ 0 ] . getFolder ( ) ) ) ; worker . setDisplayText ( ( ( "Learning<seq2seq4repair_space>ham<seq2seq4repair_space>from<seq2seq4repair_space>" + ( srcFolder . getName ( ) ) ) + "..." ) ) ; IPCHelper ipcHelper = new IPCHelper ( ) ; String path = srcFolder . getDirectoryFile ( ) . getAbsolutePath ( ) ; log . debug ( "creating<seq2seq4repair_space>process.." ) ; <START_BUG> ipcHelper . executeCommand ( ( "sa-learn<seq2seq4repair_space>--ham<seq2seq4repair_space>--dir<seq2seq4repair_space>" + path ) ) ; <END_BUG> int exitCode = ipcHelper . waitFor ( ) ; log . debug ( ( "exitcode=" + exitCode ) ) ; String output = ipcHelper . getOutputString ( ) ; log . debug ( ( "retrieving<seq2seq4repair_space>output:<seq2seq4repair_space>" + output ) ) ; worker . setDisplayText ( ( "SpamAssassin:<seq2seq4repair_space>" + output ) ) ; log . debug ( "wait<seq2seq4repair_space>for<seq2seq4repair_space>threads<seq2seq4repair_space>to<seq2seq4repair_space>join.." ) ; ipcHelper . waitForThreads ( ) ; } }

Fix:
ipcHelper . executeCommand ( ( ( ( ExternalToolsHelper . getSALearn ( ) ) + "<seq2seq4repair_space>--ham<seq2seq4repair_space>--dir<seq2seq4repair_space>" ) + path ) ) ;
Buggy code:
public class IndexedSharedResourceCodingStrategyTest extends WicketTestCase { private static final String URL_PREFIX = "//WicketTester$DummyWebApplication//WicketTester$DummyWebApplication//" ; private static final String RESOURCE_NAME = "test" ; private IndexedSharedResourceCodingStrategyTest . TestResource resource ; @ Override protected void setUp ( ) throws Exception { } public void testEmptyRequest ( ) { } public void testRequestWithIndexedParams ( ) { } public void testRequestWithIndexedParamsAndQueryString ( ) { final WebRequestCycle cycle = tester . setupRequestAndResponse ( ) ; final PageParameters params = new PageParameters ( ) ; params . add ( "0" , "param0" ) ; params . add ( "1" , "param1" ) ; params . put ( "test" , new String [ ] { "testval1" , "testval2" } ) ; params . add ( "foo" , "fooval" ) ; final String url = cycle . urlFor ( new ResourceReference ( IndexedSharedResourceCodingStrategyTest . RESOURCE_NAME ) , params ) . toString ( ) ; <START_BUG> assertEquals ( "test//param0//param1?test=testval1&test=testval2&foo=fooval" , url ) ; <END_BUG> tester . getServletRequest ( ) . setURL ( ( ( IndexedSharedResourceCodingStrategyTest . URL_PREFIX ) + url ) ) ; tester . processRequestCycle ( cycle ) ; assertEquals ( 4 , resource . params . size ( ) ) ; assertEquals ( "fooval" , resource . params . getString ( "foo" ) ) ; final String [ ] arr = resource . params . getStringArray ( "test" ) ; assertEquals ( 2 , arr . length ) ; assertEquals ( "testval1" , arr [ 0 ] ) ; assertEquals ( "testval2" , arr [ 1 ] ) ; assertEquals ( "param0" , resource . params . getString ( "0" ) ) ; assertEquals ( "param1" , resource . params . getString ( "1" ) ) ; } private static class TestResource extends Resource { private static final long serialVersionUID = 6033856371536194742L ; public ValueMap params ; @ Override public IResourceStream getResourceStream ( ) { } } }

Fix:
assertEquals ( "test//param0//param1?foo=fooval&test=testval1&test=testval2" , url ) ;
Buggy code:
public class TestLoopController extends JMeterTestCase { public TestLoopController ( String name ) { } public void testProcessing ( ) throws Exception { GenericController controller = new GenericController ( ) ; GenericController sub_1 = new GenericController ( ) ; sub_1 . addTestElement ( new TestSampler ( "one" ) ) ; sub_1 . addTestElement ( new TestSampler ( "two" ) ) ; controller . addTestElement ( sub_1 ) ; controller . addTestElement ( new TestSampler ( "three" ) ) ; LoopController sub_2 = new LoopController ( ) ; sub_2 . setLoops ( 3 ) ; GenericController sub_3 = new GenericController ( ) ; sub_2 . addTestElement ( new TestSampler ( "four" ) ) ; sub_3 . addTestElement ( new TestSampler ( "five" ) ) ; sub_3 . addTestElement ( new TestSampler ( "six" ) ) ; sub_2 . addTestElement ( sub_3 ) ; sub_2 . addTestElement ( new TestSampler ( "seven" ) ) ; controller . addTestElement ( sub_2 ) ; String [ ] order = new String [ ] { "one" , "two" , "three" , "four" , "five" , "six" , "seven" , "four" , "five" , "six" , "seven" , "four" , "five" , "six" , "seven" } ; int counter = 15 ; controller . setRunningVersion ( true ) ; sub_1 . setRunningVersion ( true ) ; sub_2 . setRunningVersion ( true ) ; sub_3 . setRunningVersion ( true ) ; controller . initialize ( ) ; for ( int i = 0 ; i < 2 ; i ++ ) { assertEquals ( 15 , counter ) ; counter = 0 ; TestElement sampler = null ; while ( ( sampler = controller . next ( ) ) != null ) { <START_BUG> assertEquals ( order [ ( counter ++ ) ] , sampler . getPropertyAsString ( NAME ) ) ; <END_BUG> } } } public void testLoopZeroTimes ( ) throws Exception { } public void testInfiniteLoop ( ) throws Exception { } }

Fix:
assertEquals ( order [ ( counter ++ ) ] , sampler . getName ( ) ) ;
Buggy code:
public class HttpTestSampleGui extends AbstractSamplerGui { private UrlConfigGui urlConfigGui ; private JCheckBox getImages ; private JCheckBox isMon ; public HttpTestSampleGui ( ) { } public void configure ( TestElement element ) { } public TestElement createTestElement ( ) { } public void modifyTestElement ( TestElement sampler ) { TestElement el = urlConfigGui . createTestElement ( ) ; sampler . clear ( ) ; sampler . addTestElement ( el ) ; if ( getImages . isSelected ( ) ) { ( ( org . apache . jmeter . protocol . http . sampler . HTTPSamplerBase ) ( sampler ) ) . setImageParser ( true ) ; } else { <START_BUG> ( ( org . apache . jmeter . protocol . http . sampler . HTTPSamplerBase ) ( sampler ) ) . setImageParser ( false ) ; <END_BUG> } if ( isMon . isSelected ( ) ) { ( ( org . apache . jmeter . protocol . http . sampler . HTTPSamplerBase ) ( sampler ) ) . setMonitor ( "true" ) ; } else { ( ( org . apache . jmeter . protocol . http . sampler . HTTPSamplerBase ) ( sampler ) ) . setMonitor ( "false" ) ; } this . configureTestElement ( sampler ) ; } public String getLabelResource ( ) { } protected void init ( ) { } private JPanel createOptionalTasksPanel ( ) { } public Dimension getPreferredSize ( ) { } public static class Test extends TestCase { HttpTestSampleGui gui ; public Test ( String name ) { } public void setUp ( ) { } public void testCloneSampler ( ) throws Exception { } } public void clear ( ) { } }

Fix:
sampler . removeProperty ( IMAGE_PARSER ) ;