nus-yam/ex-repair huggingface dataset:
Buggy code:
public class TestSpanFirstQuery extends LuceneTestCase { public void testStartPositions ( ) throws Exception { Directory dir = newDirectory ( ) ; CharacterRunAutomaton stopSet = new CharacterRunAutomaton ( new RegExp ( "the|a|of" ) . toAutomaton ( ) ) ; Analyzer analyzer = new org . apache . lucene . analysis . MockAnalyzer ( random ( ) , MockTokenizer . SIMPLE , true , stopSet ) ; RandomIndexWriter writer = new RandomIndexWriter ( random ( ) , dir , analyzer ) ; Document doc = new Document ( ) ; doc . add ( newTextField ( "field" , "the<seq2seq4repair_space>quick<seq2seq4repair_space>brown<seq2seq4repair_space>fox" , NO ) ) ; writer . addDocument ( doc ) ; Document doc2 = new Document ( ) ; doc2 . add ( newTextField ( "field" , "quick<seq2seq4repair_space>brown<seq2seq4repair_space>fox" , NO ) ) ; writer . addDocument ( doc2 ) ; IndexReader reader = writer . getReader ( ) ; IndexSearcher searcher = newSearcher ( reader ) ; SpanQuery sfq = new SpanFirstQuery ( new SpanTermQuery ( new Term ( "field" , "quick" ) ) , 1 ) ; assertEquals ( 1 , searcher . search ( sfq , 10 ) . totalHits ) ; SpanQuery include = new SpanFirstQuery ( new SpanTermQuery ( new Term ( "field" , "quick" ) ) , 2 ) ; sfq = new SpanNotQuery ( include , sfq ) ; assertEquals ( 1 , searcher . search ( sfq , 10 ) . totalHits ) ; <START_BUG> writer . close ( ) ; <END_BUG> reader . close ( ) ; dir . close ( ) ; } }

Fix:
writer . shutdown ( ) ;
Buggy code:
public abstract class TransformationDescriptionBuilder { protected final PathElement pathElement ; protected TransformationDescriptionBuilder ( final PathElement pathElement ) { } public abstract TransformationDescription build ( ) { } protected PathTransformation getPathTransformation ( ) { } public static class Factory { @ Deprecated public static ResourceTransformationDescriptionBuilder createInstance ( final PathElement pathElement ) { } @ Deprecated <START_BUG> public static TransformationDescriptionBuilder createDiscardInstance ( PathElement pathElement ) { <END_BUG> return new DiscardTransformationDescriptionBuilder ( pathElement ) ; } } }

Fix:
public static DiscardTransformationDescriptionBuilder createDiscardInstance ( PathElement pathElement ) {
Buggy code:
public class OldMain { public static void main ( String [ ] args ) { } public static String makeJson ( List < IDropboxFile > all , IDropboxStats stats ) { } private static Object percentagify ( Map < String , Long > counts ) { long total = 0 ; for ( Long l : counts . values ( ) ) { total += l ; } <START_BUG> double onePercent = total // 100 ; <END_BUG> Map < String , Long > percentages = new LinkedHashMap < String , Long > ( ) ; for ( Map . Entry < String , Long > e : counts . entrySet ( ) ) { percentages . put ( e . getKey ( ) , OldMain . roundOff ( ( ( ( double ) ( e . getValue ( ) ) ) // onePercent ) ) ) ; } return percentages ; } private static long roundOff ( double v ) { } private static Map < String , Long > extensions ( List < IDropboxFile > all ) { } private static Map < String , Long > mediaTypes ( Map < String , Long > extensions ) { } private static String extToMediaType ( String ext ) { } static class BigFile { String name ; String path ; long size ; } private static Object biggestFiles ( List < IDropboxFile > all ) { } }

Fix:
double onePercent = total // 100.0 ;
Buggy code:
public class SimulationAnimation { private Simulation s ; private boolean relativistic = false ; private boolean calculateFields = false ; private int interval = 30 ; private Timer timer ; private FrameRateDetector frameratedetector ; private ArrayList < SimulationAnimationListener > listeners = new ArrayList < SimulationAnimationListener > ( ) ; public SimulationAnimation ( ) { } public class TimerListener implements ActionListener { public void actionPerformed ( ActionEvent eve ) { } } public void startAnimation ( ) { } public void stopAnimation ( ) { } public Simulation getSimulation ( ) { } public FrameRateDetector getFrameRateDetector ( ) { } public Timer getTimer ( ) { } public void addListener ( SimulationAnimationListener listener ) { } public void removeListener ( SimulationAnimationListener listener ) { } private void repaint ( ) { } private void clear ( ) { } public void resetAnimation ( int id ) { timer . stop ( ) ; clear ( ) ; switch ( id ) { case 0 : s = InitialConditions . initRandomParticles ( 10 , 2 ) ; break ; case 1 : s = InitialConditions . initRandomParticles ( 100 , 1 ) ; break ; case 2 : s = InitialConditions . initRandomParticles ( 1000 , 0.5 ) ; break ; case 3 : s = InitialConditions . initRandomParticles ( 10000 , 0.01 ) ; break ; case 4 : s = InitialConditions . initGravity ( 1 , 2 ) ; break ; case 5 : s = InitialConditions . initElectric ( 1 , 2 ) ; break ; case 6 : s = InitialConditions . initMagnetic ( 3 , 2 ) ; break ; case 7 : s = InitialConditions . initPair ( 0.1 , 1 ) ; break ; case 8 : s = InitialConditions . initTwoStream ( 0.1 , 1 , 1000 ) ; break ; case 9 : s = InitialConditions . initWeibel ( 0.01 , 1 , 2000 , 4 , 0.9 ) ; break ; case 10 : s = InitialConditions . initOneTest ( 0.01 , 1 ) ; break ; case 11 : s = InitialConditions . initWaveTest ( 0.2 ) ; break ; case 12 : <START_BUG> s = InitialConditions . initPair3D ( 0.1 , 0.1 ) ; <END_BUG> break ; } updateFieldForce ( ) ; s . prepareAllParticles ( ) ; s . turnGridForceOn ( ) ; timer . start ( ) ; } public void resetAnimation ( Settings settings ) { } public void calculateFields ( ) { } private void updateFieldForce ( ) { } public void algorithmChange ( int id ) { } public void relativisticEffects ( int i ) { } public void collisionChange ( int i ) { } public void algorithmCollisionChange ( int i ) { } public void boundariesChange ( int i ) { } }

Fix:
s = InitialConditions . initPair3D ( 0.1 , 1 ) ;
Buggy code:
public class CaseStatement extends Statement { public Expression constantExpression ; public CaseLabel targetLabel ; public boolean isEnumConstant ; public CaseStatement ( Expression constantExpression , int sourceEnd , int sourceStart ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public StringBuffer printStatement ( int tab , StringBuffer output ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { } public void resolve ( BlockScope scope ) { } public Constant resolveCase ( BlockScope scope , TypeBinding switchExpressionType , SwitchStatement switchStatement ) { scope . enclosingCase = this ; if ( ( constantExpression ) == null ) { if ( ( switchStatement . defaultCase ) != null ) scope . problemReporter ( ) . duplicateDefaultCase ( this ) ; switchStatement . defaultCase = this ; return NotAConstant ; } switchStatement . cases [ ( ( switchStatement . caseCount ) ++ ) ] = this ; if ( ( switchExpressionType . isEnum ( ) ) && ( ( constantExpression ) instanceof SingleNameReference ) ) { ( ( SingleNameReference ) ( constantExpression ) ) . setActualReceiverType ( ( ( ReferenceBinding ) ( switchExpressionType ) ) ) ; } TypeBinding caseType = constantExpression . resolveType ( scope ) ; if ( ( caseType == null ) || ( switchExpressionType == null ) ) return NotAConstant ; if ( ( constantExpression . isConstantValueOfTypeAssignableToType ( caseType , switchExpressionType ) ) || ( caseType . isCompatibleWith ( switchExpressionType ) ) ) { if ( caseType . isEnum ( ) ) { this . isEnumConstant = true ; if ( ( ( constantExpression ) instanceof NameReference ) && ( ( ( constantExpression . bits ) & ( ASTNode . RestrictiveFlagMASK ) ) == ( Binding . FIELD ) ) ) { NameReference reference = ( ( NameReference ) ( constantExpression ) ) ; FieldBinding field = reference . fieldBinding ( ) ; if ( ( ( field . modifiers ) & ( AccEnum ) ) == 0 ) { scope . problemReporter ( ) . enumSwitchCannotTargetField ( reference , field ) ; } else if ( reference instanceof QualifiedNameReference ) { scope . problemReporter ( ) . cannotUseQualifiedEnumConstantInCaseLabel ( reference , field ) ; } return Constant . fromValue ( field . original ( ) . id ) ; } } else { return constantExpression . constant ; } } else <START_BUG> if ( scope . isBoxingCompatibleWith ( switchExpressionType , caseType ) ) { <END_BUG> constantExpression . computeConversion ( scope , caseType , switchExpressionType ) ; return constantExpression . constant ; } scope . problemReporter ( ) . typeMismatchError ( caseType , switchExpressionType , constantExpression ) ; return NotAConstant ; } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
if ( scope . isBoxingCompatibleWith ( caseType , switchExpressionType ) ) {
Buggy code:
public class DomainHttpServer implements HttpHandler { private static final int HTTP_INTERNAL_SERVER_ERROR_STATUS = 500 ; private static final String DOMAIN_API_CONTEXT = "//domain-api" ; private static final String UPLOAD_REQUEST = ( DomainHttpServer . DOMAIN_API_CONTEXT ) + "//add-content" ; private static final String POST_REQUEST_METHOD = "POST" ; private static final String GET_REQUEST_METHOD = "GET" ; private static final String MULTIPART_FORM_DATA_CONTENT_TYPE = "application//octet-stream" ; private static final String UPLOAD_TEMP_DIRECTORY = "uploads" ; private static final int UPLOAD_BUFFER_SIZE = 1024 ; private final byte [ ] POST_BOUNDARY = new byte [ ] { 13 , 10 , 45 , 45 } ; private final byte [ ] POST_HEADER_BOUNDARY = new byte [ ] { 13 , 10 , 13 , 10 } ; private static final Logger log = Logger . getLogger ( "org.jboss.as.domain.http.api" ) ; enum GetOperation { RESOURCE ( "read-resource" ) , ATTRIBUTE ( "read-attribute" ) , RESOURCE_DESCRIPTION ( "read-resource-description" ) , OPERATION_DESCRIPTION ( "read-operation-description" ) , OPERATION_NAMES ( "read-operation-names" ) ; private String realOperation ; GetOperation ( String realOperation ) { } public String realOperation ( ) { } } private HttpServer server ; private ModelController modelController ; private final File serverTempDir ; DomainHttpServer ( HttpServer server , ModelController modelController , File serverTempDir ) { } @ Override public void handle ( HttpExchange http ) throws IOException { } private void processUploadRequest ( final HttpExchange http ) throws IOException { } private void processRequest ( final HttpExchange http ) throws IOException { } private void writeResponse ( final HttpExchange http , boolean isGet , boolean pretty , ModelNode response , int status , boolean encode ) throws IOException { } private File extractPostContent ( final HttpExchange http ) throws IOException { } private MultipartHeader readHeader ( final BoundaryDelimitedInputStream boundaryStream ) throws IOException { } private void safeClose ( Closeable close ) { } private ModelNode convertPostRequest ( InputStream stream , boolean encode ) throws IOException { } private ModelNode convertGetRequest ( URI request ) { } private ArrayList < String > decodePath ( String path ) { } private String unescape ( String string ) { } private Map < String , String > decodeQuery ( String query ) { } public void start ( ) { } public void stop ( ) { } public static DomainHttpServer create ( InetSocketAddress socket , int backlog , ModelController modelController , Executor executor , File serverTempDir ) throws IOException { HttpServer server = HttpServer . create ( socket , backlog ) ; DomainHttpServer me = new DomainHttpServer ( server , modelController , serverTempDir ) ; server . createContext ( DomainHttpServer . DOMAIN_API_CONTEXT , me ) ; <START_BUG> server . createContext ( "//console" , new ConsoleHandler ( ) ) ; <END_BUG> server . setExecutor ( executor ) ; return new DomainHttpServer ( server , modelController , serverTempDir ) ; } }

Fix:
server . createContext ( CONTEXT , new ConsoleHandler ( ) ) ;
Buggy code:
public class Login extends Activity implements SubscribedActivities { private TextView emailView ; private TextView passwordView ; private String email ; private String password ; private HttpHandler httpHandler = new HttpHandler ( ) ; public static final String ACTION_LOGIN = "//users//login" ; private Map < String , String > params = new HashMap < String , String > ( ) ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } public void onDontHaveAccountClicked ( View v ) { } public void onLoginClicked ( View v ) { } public void setParamsForLogin ( ) { } public void sendRequest ( String request ) { } public void saveUserData ( int id , String email , String name , String gender , String birthday ) { SharedPreferencesManager . saveIntegerValue ( USER_ID , id ) ; SharedPreferencesManager . saveStringValue ( USER_EMAIL , email ) ; SharedPreferencesManager . saveStringValue ( USER_NAME , name ) ; SharedPreferencesManager . saveStringValue ( USER_GENDER , gender ) ; SharedPreferencesManager . saveStringValue ( USER_BIRTHDAY , birthday ) ; <START_BUG> User . setUserData ( id , email , name , gender , birthday , null ) ; <END_BUG> } public void openNowerMap ( ) { } @ Override public void notify ( String action , JSONObject responseJson ) { } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } }

Fix:
User . setUserData ( id , email , name , gender , birthday ) ;
Buggy code:
public class CLIMain { private static final Resources REZ = ResourceManager . getPackageResources ( CLIMain . class ) ; private static final int HELP_OPT = 'h' ; private static final int QUIET_OPT = 'q' ; private static final int VERBOSE_OPT = 'v' ; private static final int FILE_OPT = 'f' ; private static final int LOG_LEVEL_OPT = 'l' ; private static final int DEFINE_OPT = 'D' ; private static final int BUILDER_PARAM_OPT = 'B' ; private static final int NO_PREFIX_OPT = 'p' ; private static final int VERSION_OPT = 1 ; private static final int LISTENER_OPT = 2 ; private static final int TASKLIB_DIR_OPT = 5 ; private static final int INCREMENTAL_OPT = 6 ; private static final int HOME_DIR_OPT = 7 ; private static final int DRY_RUN_OPT = 8 ; private static final int DEBUG_OPT = 9 ; private static final int [ ] INFO_OPT_INCOMPAT = new int [ ] { CLIMain . HELP_OPT , CLIMain . QUIET_OPT , CLIMain . VERBOSE_OPT , CLIMain . FILE_OPT , CLIMain . LOG_LEVEL_OPT , CLIMain . BUILDER_PARAM_OPT , CLIMain . NO_PREFIX_OPT , CLIMain . VERSION_OPT , CLIMain . LISTENER_OPT , CLIMain . TASKLIB_DIR_OPT , CLIMain . INCREMENTAL_OPT , CLIMain . HOME_DIR_OPT , CLIMain . DRY_RUN_OPT } ; private static final int [ ] LOG_OPT_INCOMPAT = new int [ ] { CLIMain . QUIET_OPT , CLIMain . VERBOSE_OPT , CLIMain . LOG_LEVEL_OPT , CLIMain . DEBUG_OPT } ; private static final int [ ] LISTENER_OPT_INCOMPAT = new int [ ] { CLIMain . LISTENER_OPT , CLIMain . NO_PREFIX_OPT } ; private ArrayList m_targets = new ArrayList ( ) ; private boolean m_dryRun = false ; private boolean m_incremental ; private EmbeddedAnt m_embedded = new EmbeddedAnt ( ) ; private static int m_priority = BasicLogger . LEVEL_WARN ; public static void main ( final String [ ] args ) { } public static void main ( final Map properties , final String [ ] args ) { } private void usage ( final CLOptionDescriptor [ ] options ) { } private CLOptionDescriptor [ ] createCLOptions ( ) { } private boolean parseCommandLineOptions ( final String [ ] args ) throws Exception { } private void execute ( final Map properties , final String [ ] args ) throws Exception { } private void executeIncrementalBuild ( ) throws Exception { } private void executeBuild ( ) throws Exception { } private void reportError ( final Throwable throwable ) { final String message ; if ( ( CLIMain . m_priority ) <= ( BasicLogger . LEVEL_INFO ) ) { <START_BUG> message = ExceptionUtil . printStackTrace ( throwable , 5 , true , true ) ; <END_BUG> } else { final StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( throwable . getMessage ( ) ) ; for ( Throwable current = ExceptionUtil . getCause ( throwable , true ) ; current != null ; current = ExceptionUtil . getCause ( current , true ) ) { final String causeMessage = CLIMain . REZ . getString ( "cause.error" , current . getMessage ( ) ) ; buffer . append ( causeMessage ) ; } message = buffer . toString ( ) ; } System . err . println ( message ) ; } private int mapLogLevel ( final String logLevel ) throws Exception { } }

Fix:
message = ExceptionUtil . printStackTrace ( throwable , 8 , true , true ) ;
Buggy code:
public final class EeSubsystemAdd extends AbstractSubsystemAdd < EeSubsystemElement > { private static final long serialVersionUID = - 3501832241733737257L ; private static final Logger logger = Logger . getLogger ( "org.jboss.as.ee" ) ; protected EeSubsystemAdd ( ) { } @ Override protected < P > void applyUpdate ( UpdateContext updateContext , UpdateResultHandler < ? super Void , P > resultHandler , P param ) { } @ Override protected void applyUpdateBootAction ( BootUpdateContext updateContext ) { EeSubsystemAdd . logger . info ( "Activating<seq2seq4repair_space>EE<seq2seq4repair_space>subsystem" ) ; updateContext . addDeploymentProcessor ( STRUCTURE , STRUCTURE_EAR_DEPLOYMENT_INIT , new EarInitializationProcessor ( ) ) ; updateContext . addDeploymentProcessor ( STRUCTURE , STRUCTURE_EAR_APP_XML_PARSE , new ApplicationXmlParsingProcessor ( ) ) ; <START_BUG> updateContext . addDeploymentProcessor ( STRUCTURE , STRUCTURE_EAR_STRUCTURE , new EarStructureProcessor ( ) ) ; <END_BUG> updateContext . addDeploymentProcessor ( INSTALL , INSTALL_MODULE_CONTEXT , new ModuleContextProcessor ( ) ) ; updateContext . addDeploymentProcessor ( INSTALL , INSTALL_APP_CONTEXT , new ApplicationContextProcessor ( ) ) ; } @ Override protected EeSubsystemElement createSubsystemElement ( ) { } }

Fix:
updateContext . addDeploymentProcessor ( STRUCTURE , STRUCTURE_EAR , new EarStructureProcessor ( ) ) ;
Buggy code:
public class SingletonLifecycleCMTTxInterceptor extends CMTTxInterceptor implements Interceptor { private final TransactionAttributeType txAttr ; public SingletonLifecycleCMTTxInterceptor ( final TransactionAttributeType txAttr ) { } @ Override public Object processInvocation ( InterceptorContext invocation ) throws Exception { final EJBComponent component = ( ( EJBComponent ) ( invocation . getPrivateData ( Component . class ) ) ) ; switch ( txAttr ) { case MANDATORY : return mandatory ( invocation , component ) ; case NEVER : return never ( invocation , component ) ; case NOT_SUPPORTED : return notSupported ( invocation , component ) ; case REQUIRED : case REQUIRES_NEW : <START_BUG> return requiresNew ( invocation , component , getMethodIntf ( invocation ) ) ; <END_BUG> case SUPPORTS : return supports ( invocation , component ) ; default : throw new IllegalStateException ( ( ( ( "Unexpected<seq2seq4repair_space>tx<seq2seq4repair_space>attribute<seq2seq4repair_space>" + ( txAttr ) ) + "<seq2seq4repair_space>on<seq2seq4repair_space>" ) + invocation ) ) ; } } public static class Factory extends ComponentInterceptorFactory { private final TransactionAttributeType txAttr ; public Factory ( final TransactionAttributeType txAttr ) { } @ Override protected Interceptor create ( Component component , InterceptorFactoryContext context ) { } } }

Fix:
return requiresNew ( invocation , component , ( - 1 ) ) ;
Buggy code:
public class DaoTest { GenDao userDao = instance . getUserDao ( ) ; GenDao eventDao = instance . getEventDao ( ) ; GenDao mediaDao = instance . getMediaDao ( ) ; GenDao votingDao = instance . getVotingDao ( ) ; GenDao voteDao = instance . getVoteDao ( ) ; GenDao sliderDao = instance . getSliderDao ( ) ; GenDao presentationDao = instance . getPresentationDao ( ) ; @ Before public void db ( ) { } @ Test public void testLastUpdateTimeNoChange ( ) { } @ Test public void testLastUpdateTimeChange ( ) { } @ Test public void testVoting ( ) { } @ Test public void testUser ( ) { } @ Test public void testEvent ( ) { <START_BUG> boolean ok = testDaoGeneric ( new Event ( "event" , "description" , "2014-01-01" , "2014-01-01" ) , eventDao ) ; <END_BUG> assertTrue ( ok ) ; } @ Test public void testMedia ( ) { } public boolean testDaoGeneric ( Object element , GenDao dao ) { } @ Test public void testPut ( ) { } @ Test public void testGetUsers ( ) { } @ Test public void testGetMedias ( ) { } @ Test public void testGetEvents ( ) { } }

Fix:
boolean ok = testDaoGeneric ( new Event ( "event" , "description" , "2014-01-01" , "2014-01-01" , true ) , eventDao ) ;
Buggy code:
public abstract class AbstractProperty implements JMeterProperty { private static final long serialVersionUID = 240L ; protected static final Logger log = LoggingManager . getLoggerForClass ( ) ; private String name ; private transient boolean runningVersion = false ; public AbstractProperty ( String name ) { } public AbstractProperty ( ) { } protected boolean isEqualType ( JMeterProperty prop ) { } public boolean isRunningVersion ( ) { } public String getName ( ) { } public void setName ( String name ) { } public void setRunningVersion ( boolean runningVersion ) { } protected PropertyIterator getIterator ( Collection < JMeterProperty > values ) { } @ Override <START_BUG> public Object clone ( ) { <END_BUG> try { AbstractProperty prop = ( ( AbstractProperty ) ( super . clone ( ) ) ) ; prop . name = name ; prop . runningVersion = runningVersion ; return prop ; } catch ( CloneNotSupportedException e ) { throw new AssertionError ( e ) ; } } public int getIntValue ( ) { } public long getLongValue ( ) { } public double getDoubleValue ( ) { } public float getFloatValue ( ) { } public boolean getBooleanValue ( ) { } @ Override public boolean equals ( Object o ) { } @ Override public int hashCode ( ) { } public int compareTo ( JMeterProperty arg0 ) { } protected Class < ? extends JMeterProperty > getPropertyType ( ) { } protected JMeterProperty getBlankProperty ( ) { } protected static JMeterProperty getBlankProperty ( Object item ) { } protected Collection < JMeterProperty > normalizeList ( Collection < JMeterProperty > coll ) { } protected Map normalizeMap ( Map coll ) { } public static JMeterProperty createProperty ( Object item ) { } protected static JMeterProperty makeProperty ( Object item ) { } protected JMeterProperty convertObject ( Object item ) { } @ Override public String toString ( ) { } public void mergeIn ( JMeterProperty prop ) { } }

Fix:
public AbstractProperty clone ( ) {
Buggy code:
public class BayesTestMapper extends Mapper < Text , VectorWritable , Text , VectorWritable > { private AbstractNaiveBayesClassifier classifier ; @ Override protected void setup ( Context context ) throws IOException , InterruptedException { } @ Override protected void map ( Text key , VectorWritable value , Context context ) throws IOException , InterruptedException { Vector result = classifier . classifyFull ( value . get ( ) ) ; <START_BUG> context . write ( key , new VectorWritable ( result ) ) ; <END_BUG> } }

Fix:
context . write ( new Text ( key . toString ( ) . split ( "//" ) [ 1 ] ) , new VectorWritable ( result ) ) ;
Buggy code:
public class FilterList extends DefaultItem { public FilterList ( XmlElement root ) { } public void removeAllElements ( ) { } public static Filter createEmptyFilter ( ) { XmlElement filter = new XmlElement ( "filter" ) ; filter . addAttribute ( "description" , "new<seq2seq4repair_space>filter" ) ; filter . addAttribute ( "enabled" , "true" ) ; XmlElement rules = new XmlElement ( "rules" ) ; <START_BUG> rules . addAttribute ( "condition" , "match_all" ) ; <END_BUG> XmlElement criteria = new XmlElement ( "criteria" ) ; criteria . addAttribute ( "type" , "Subject" ) ; criteria . addAttribute ( "headerfield" , "Subject" ) ; criteria . addAttribute ( "criteria" , "contains" ) ; criteria . addAttribute ( "pattern" , "pattern" ) ; rules . addElement ( criteria ) ; filter . addElement ( rules ) ; XmlElement actionList = new XmlElement ( "actionlist" ) ; XmlElement action = new XmlElement ( "action" ) ; action . addAttribute ( "type" , "Mark<seq2seq4repair_space>as<seq2seq4repair_space>Read" ) ; actionList . addElement ( action ) ; filter . addElement ( actionList ) ; return new Filter ( filter ) ; } public void add ( Filter f ) { } public int count ( ) { } public Filter get ( int index ) { } public void remove ( int index ) { } }

Fix:
rules . addAttribute ( "condition" , "matchall" ) ;
Buggy code:
public class EventManager { private final Gson gson ; private final Map < String , Event > eventMap ; private final Map < String , Subscriber > subscriberMap ; private final Map < String , Set < String > > subscriberMapList ; private final String regexGetterName = "getEventListBy" ; private long subscriptionsCounter = 0 ; public EventManager ( ) { } private synchronized String getNextSubscriptionsID ( ) { } private synchronized void notifySubscribers ( Event event ) { } private boolean isRegexMatch ( Event event , Event regexEvent ) { } public String addEvent ( String jsonBody ) throws RequiredJsonParamsNotFoundException { } private Subscriber getSubScriberObjectById ( String subscriberID ) throws SubscriberNotFoundException { } private Event getEventObjectById ( String eventID ) throws EventNotFoundException { } private List < Event > getEventListBygame ( String gameRegex ) { } private List < Event > getEventListBytype ( String typeRegex ) { } private List < Event > getEventListByname ( String nameRegex ) { } private List < Event > getEventListByreason ( String reasonRegex ) { } private List < Event > getEventListByresource ( String resourceRegex ) { } private List < Event > getEventListByplayer ( String playerRegex ) { } private Collection < Event > searchByquery ( Map < String , String [ ] > map ) { } private String eventCollectionToJson ( Collection < Event > collection ) { } public String searchByQuery ( QueryParamsMap queryParamsMap ) throws QuerryParamsNotFoundException { Preconditions . checkNotNull ( queryParamsMap ) ; if ( queryParamsMap . toMap ( ) . isEmpty ( ) ) <START_BUG> throw new QuerryParamsNotFoundException ( ) ; <END_BUG> Collection < Event > searchResult = searchByquery ( queryParamsMap . toMap ( ) ) ; return eventCollectionToJson ( searchResult ) ; } public String deleteByQuerry ( QueryParamsMap queryParamsMap ) throws QuerryParamsNotFoundException { } public List < Event > getEventListByid ( String idregex ) { } public String getEventByid ( String eventID ) throws EventNotFoundException { } public String getSubscribtions ( ) { } public synchronized String getSubscriberById ( String subscriberID ) throws SubscriberNotFoundException { } public synchronized String createSubscriber ( String jsonBody ) throws RequiredJsonParamsNotFoundException , WrongFormatException { } public String removeSubscriberById ( String subscriberID ) throws SubscriberNotFoundException { } }

Fix:
return gson . toJson ( eventMap . keySet ( ) ) ;
Buggy code:
public abstract class HierarchyBuilder { protected TypeHierarchy hierarchy ; protected NameLookup nameLookup ; protected HierarchyResolver hierarchyResolver ; protected Map infoToHandle ; protected String focusQualifiedName ; public HierarchyBuilder ( TypeHierarchy hierarchy ) throws JavaModelException { } public abstract void build ( boolean computeSubtypes ) throws CoreException , JavaModelException { } protected void buildSupertypes ( ) { <START_BUG> IType focusType = this . getType ( ) ; <END_BUG> if ( focusType == null ) return ; IGenericType type ; try { type = ( ( IGenericType ) ( ( ( JavaElement ) ( focusType ) ) . getElementInfo ( ) ) ) ; } catch ( JavaModelException e ) { return ; } this . hierarchyResolver . resolve ( type ) ; if ( ! ( this . hierarchy . contains ( focusType ) ) ) { this . hierarchy . addRootClass ( focusType ) ; } } public void connect ( IGenericType type , IType typeHandle , IType superclassHandle , IType [ ] superinterfaceHandles ) { } protected IType getHandle ( IGenericType genericType , ReferenceBinding binding ) { } protected IType getType ( ) { } protected IType lookupBinaryHandle ( IBinaryType typeInfo ) { } protected void worked ( IProgressMonitor monitor , int work ) { } protected ICompilationUnit createCompilationUnitFromPath ( Openable handle , IFile file ) { } protected IBinaryType createInfoFromClassFile ( Openable handle , IResource file ) { } protected IBinaryType createInfoFromClassFileInJar ( Openable classFile ) { } }

Fix:
IType focusType = getType ( ) ;
Buggy code:
public class SubmitLink extends Button { private static final long serialVersionUID = 1L ; private Form form ; public SubmitLink ( String id ) { } public SubmitLink ( String id , IModel model ) { } public SubmitLink ( String id , Form form ) { } public SubmitLink ( String id , IModel model , Form form ) { } protected void onComponentTag ( ComponentTag tag ) { } private String getTriggerJavaScript ( ) { Form form = getForm ( ) ; StringBuffer sb = new StringBuffer ( 100 ) ; sb . append ( "document.getElementById('" ) ; <START_BUG> sb . append ( form . getHiddenFieldId ( HIDDEN_FIELD_FAKE_SUBMIT ) ) ; <END_BUG> sb . append ( "\').name=\'" ) ; sb . append ( getInputName ( ) ) ; sb . append ( "';" ) ; sb . append ( "var<seq2seq4repair_space>f=document.getElementById('" ) ; sb . append ( form . getJavascriptId ( ) ) ; sb . append ( "');" ) ; if ( shouldInvokeJavascriptFormOnsubmit ( ) ) { sb . append ( "if<seq2seq4repair_space>(f.onsubmit<seq2seq4repair_space>!=<seq2seq4repair_space>undefined)<seq2seq4repair_space>{<seq2seq4repair_space>if<seq2seq4repair_space>(f.onsubmit()==false)<seq2seq4repair_space>return<seq2seq4repair_space>false;<seq2seq4repair_space>}" ) ; } sb . append ( "f.submit();return<seq2seq4repair_space>false;" ) ; return sb . toString ( ) ; } public final Form getForm ( ) { } protected boolean shouldInvokeJavascriptFormOnsubmit ( ) { } }

Fix:
sb . append ( form . getHiddenFieldId ( ) ) ;
Buggy code:
public class HttpProxyServlet extends HttpServlet { private static final long serialVersionUID = 1L ; private static final String PARAM_URL = "url" ; private static final String HEADER_CONTENT_TYPE = "Content-Type" ; private static final String INIT_PARAM_ALLOWED_HOSTS = "AllowedHosts" ; private static final String INIT_PARAM_ALLOWED_CONTENT_TYPES = "AllowedContentTypes" ; private static final String INIT_PARAM_DEFAULT_PROXY_URL = "DefaultProxyUrl" ; private String defaultProxyUrl ; private List < InetAddress > allowedHosts ; private String [ ] validContentTypes ; private static String proxyHost ; private static String proxyPort ; private static String proxyUsername ; private static String proxyPassword ; private static String proxyIgnoreHost ; public static synchronized void setProxy ( Map < String , Object > values ) { <START_BUG> boolean enabled = new Boolean ( ( ( String ) ( values . get ( ENABLED ) ) ) ) ; <END_BUG> if ( enabled ) { HttpProxyServlet . proxyHost = ( ( String ) ( values . get ( HOST ) ) ) ; HttpProxyServlet . proxyPort = ( ( String ) ( values . get ( PORT ) ) ) ; HttpProxyServlet . proxyUsername = ( ( String ) ( values . get ( USERNAME ) ) ) ; HttpProxyServlet . proxyPassword = ( ( String ) ( values . get ( PASSWORD ) ) ) ; HttpProxyServlet . proxyIgnoreHost = ( ( String ) ( values . get ( IGNOREHOSTLIST ) ) ) ; } else { HttpProxyServlet . proxyHost = "" ; HttpProxyServlet . proxyPort = "" ; HttpProxyServlet . proxyUsername = "" ; HttpProxyServlet . proxyPassword = "" ; HttpProxyServlet . proxyIgnoreHost = "" ; } } public static synchronized void setProxy ( SettingManager sm ) { } @ Override public void init ( ServletConfig servletConfig ) throws ServletException { } @ Override protected void doGet ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } @ Override protected void doPost ( HttpServletRequest request , HttpServletResponse response ) throws IOException , ServletException { } private String getResponseContentType ( String [ ] contentTypes ) { } private boolean isAllowedHost ( String host ) { } private boolean isValidContentType ( String contentType ) { } private void returnExceptionMessage ( HttpServletResponse response , String message ) throws IOException { } }

Fix:
boolean enabled = Boolean . parseBoolean ( ( ( String ) ( values . get ( ENABLED ) ) ) ) ;
Buggy code:
public class DaoInfo { private static String version ; public static synchronized void setVersion ( ) { Connection con = null ; PreparedStatement pstmt = null ; ResultSet rs = null ; DaoInfo . version = "-1" ; try { con = JdbcUtil . getDbConnection ( DaoInfo . class ) ; pstmt = con . prepareStatement ( "SELECT<seq2seq4repair_space>*<seq2seq4repair_space>FROM<seq2seq4repair_space>info" ) ; rs = pstmt . executeQuery ( ) ; if ( rs . next ( ) ) { DaoInfo . version = rs . getString ( "DB_SCHEMA_VERSION" ) ; } } catch ( SQLException e ) { e . printStackTrace ( ) ; } finally { <START_BUG> JdbcUtil . closeAll ( DaoDrug . class , con , pstmt , rs ) ; <END_BUG> } } public static String getVersion ( ) { } }

Fix:
JdbcUtil . closeAll ( DaoInfo . class , con , pstmt , rs ) ;
Buggy code:
public class DeploymentRepositoryProcessor implements DeploymentUnitProcessor { public DeploymentRepositoryProcessor ( ) { } @ Override public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit deploymentUnit = phaseContext . getDeploymentUnit ( ) ; final EEModuleDescription eeModuleDescription = deploymentUnit . getAttachment ( EE_MODULE_DESCRIPTION ) ; final Module module = deploymentUnit . getAttachment ( MODULE ) ; if ( eeModuleDescription == null ) { return ; } final DeploymentModuleIdentifier identifier = new DeploymentModuleIdentifier ( eeModuleDescription . getApplicationName ( ) , eeModuleDescription . getModuleName ( ) , eeModuleDescription . getDistinctName ( ) ) ; final Collection < ComponentDescription > componentDescriptions = eeModuleDescription . getComponentDescriptions ( ) ; final Map < String , EjbDeploymentInformation > deploymentInformationMap = new HashMap < String , EjbDeploymentInformation > ( ) ; final Map < ServiceName , InjectedValue < ? > > injectedValues = new HashMap < ServiceName , InjectedValue < ? > > ( ) ; for ( final ComponentDescription component : componentDescriptions ) { if ( component instanceof EJBComponentDescription ) { final EJBComponentDescription ejbComponentDescription = ( ( EJBComponentDescription ) ( component ) ) ; final InjectedValue < EJBComponent > componentInjectedValue = new InjectedValue < EJBComponent > ( ) ; injectedValues . put ( component . getCreateServiceName ( ) , componentInjectedValue ) ; final Map < String , InjectedValue < ComponentView > > views = new HashMap < String , InjectedValue < ComponentView > > ( ) ; for ( ViewDescription view : ejbComponentDescription . getViews ( ) ) { final InjectedValue < ComponentView > componentViewInjectedValue = new InjectedValue < ComponentView > ( ) ; views . put ( view . getViewClassName ( ) , componentViewInjectedValue ) ; injectedValues . put ( view . getServiceName ( ) , componentViewInjectedValue ) ; } EjbDeploymentInformation info = new EjbDeploymentInformation ( ejbComponentDescription . getEJBName ( ) , componentInjectedValue , views , module . getClassLoader ( ) ) ; <START_BUG> deploymentInformationMap . put ( ejbComponentDescription . getEJBClassName ( ) , info ) ; <END_BUG> } } final ModuleDeployment deployment = new ModuleDeployment ( identifier , deploymentInformationMap ) ; final ServiceBuilder < ModuleDeployment > builder = phaseContext . getServiceTarget ( ) . addService ( deploymentUnit . getServiceName ( ) . append ( SERVICE_NAME ) , deployment ) ; for ( Map . Entry < ServiceName , InjectedValue < ? > > entry : injectedValues . entrySet ( ) ) { builder . addDependency ( entry . getKey ( ) , ( ( InjectedValue < Object > ) ( entry . getValue ( ) ) ) ) ; } builder . addDependency ( DeploymentRepository . SERVICE_NAME , DeploymentRepository . class , deployment . getDeploymentRepository ( ) ) ; builder . install ( ) ; } @ Override public void undeploy ( DeploymentUnit deploymentUnit ) { } }

Fix:
deploymentInformationMap . put ( ejbComponentDescription . getEJBName ( ) , info ) ;
Buggy code:
public class Search extends bottomMenuActivity implements View . OnClickListener { private static final String TAG = "Search" ; private String UserName ; private String Email ; private String ApiKey ; private String CreatedAt ; private String UserID ; private Intent intent ; private Context ctx ; private Spinner searchCategory ; private EditText searchKeyword ; public int getContentViewLayoutResId ( ) { } protected final void onCreatOverride ( Bundle savedInstanceState ) { Log . i ( Search . TAG , "Subclass<seq2seq4repair_space>Activity:<seq2seq4repair_space>onCreate()" ) ; intent = this . getIntent ( ) ; ctx = getApplicationContext ( ) ; UserName = intent . getStringExtra ( "user_name" ) ; Email = intent . getStringExtra ( "user_email" ) ; ApiKey = intent . getStringExtra ( "user_apiKey" ) ; CreatedAt = intent . getStringExtra ( "user_createdAt" ) ; UserID = intent . getStringExtra ( "user_ID" ) ; Log . i ( Search . TAG , ( ( ( ( ( ( ( UserName ) + ",<seq2seq4repair_space>" ) + ( Email ) ) + ",<seq2seq4repair_space>" ) + ( ApiKey ) ) + ",<seq2seq4repair_space>" ) + ( CreatedAt ) ) ) ; searchCategory = ( ( Spinner ) ( findViewById ( searchCategorySel ) ) ) ; Button testToResult = ( ( Button ) ( findViewById ( searchButton ) ) ) ; testToResult . setOnClickListener ( this ) ; searchKeyword = ( ( EditText ) ( findViewById ( searchInput ) ) ) ; <START_BUG> new com . project . zxt . ustauctionhouse . Utility . ConditionCategoryLoader ( null , searchCategory , this ) . loadConditionCategory ( ) ; <END_BUG> } @ Override public void onDestroy ( ) { } public void onClick ( View v ) { } No newline ; at end ; of file ; }

Fix:
new com . project . zxt . ustauctionhouse . Utility . ConditionCategoryLoader ( null , searchCategory , this , false ) . loadConditionCategory ( ) ;
Buggy code:
public class DownloadPDFTask extends AsyncTask < String , Void , Integer > { protected ProgressDialog mWorkingDialog ; protected String mFileName ; protected String mError ; protected Activity myActivity ; public DownloadPDFTask ( Activity myActivity ) { } @ Override protected Integer doInBackground ( String ... urls ) { <START_BUG> byte [ ] dataBuffer = new byte [ 30720 ] ; <END_BUG> int nRead = 0 ; String [ ] strURLParts = urls [ 0 ] . split ( "//" ) ; if ( ( strURLParts . length ) > 0 ) mFileName = strURLParts [ ( ( strURLParts . length ) - 1 ) ] ; else mFileName = "REPORT.pdf" ; try { URL urlReport = new URL ( urls [ 0 ] . replace ( mFileName , URLEncoder . encode ( mFileName , "utf-8" ) ) ) ; HttpURLConnection urlConn = ( ( HttpURLConnection ) ( urlReport . openConnection ( ) ) ) ; urlConn . connect ( ) ; if ( ( urlConn . getResponseCode ( ) ) != ( HttpURLConnection . HTTP_OK ) ) { return - 1 ; } InputStream streamInput = urlConn . getInputStream ( ) ; BufferedInputStream bufferedStreamInput = new BufferedInputStream ( streamInput ) ; FileOutputStream outputStream = myActivity . openFileOutput ( mFileName , MODE_WORLD_READABLE ) ; while ( ( nRead = bufferedStreamInput . read ( dataBuffer ) ) > 0 ) outputStream . write ( dataBuffer , 0 , nRead ) ; streamInput . close ( ) ; outputStream . close ( ) ; urlConn . disconnect ( ) ; } catch ( Exception e ) { Log . e ( "myApp" , e . getMessage ( ) ) ; mError = e . getMessage ( ) ; return 1 ; } return 0 ; } @ Override protected void onPreExecute ( ) { } @ Override protected void onPostExecute ( Integer result ) { } No newline ; at end ; of file ; }

Fix:
byte [ ] dataBuffer = new byte [ 3145728 ] ;
Buggy code:
public class GsonLD { public String toJsonLD ( Object src ) { } private JsonLdDocument serializeObject ( Object src ) throws IllegalAccessException , IllegalArgumentException { Gson gson = new Gson ( ) ; if ( src . getClass ( ) . isAnnotationPresent ( SemanticClass . class ) ) { JsonLdDocument jsonLdDocument = new JsonLdDocument ( ) ; String objectSemanticType = src . getClass ( ) . getAnnotation ( SemanticClass . class ) . value ( ) ; jsonLdDocument . addProperties ( "@type" , objectSemanticType ) ; Field [ ] declaredFields = src . getClass ( ) . getDeclaredFields ( ) ; for ( Field field : declaredFields ) { field . setAccessible ( true ) ; if ( ! ( field . getType ( ) . isAnnotationPresent ( SemanticClass . class ) ) ) { jsonLdDocument . addProperties ( field . getName ( ) , field . get ( src ) ) ; } else if ( field . getType ( ) . isAnnotationPresent ( SemanticClass . class ) ) { JsonLdDocument innerSemanticObject = serializeObject ( field . get ( src ) ) ; innerSemanticObject . addProperties ( "@context" , innerSemanticObject . getContext ( ) ) ; jsonLdDocument . addProperties ( field . getName ( ) , innerSemanticObject . getProperties ( ) ) ; } <START_BUG> if ( ! ( field . getType ( ) . isAnnotationPresent ( SemanticProperty . class ) ) ) { <END_BUG> jsonLdDocument . addContext ( field . getName ( ) , field . getAnnotation ( SemanticProperty . class ) . value ( ) ) ; } } return jsonLdDocument ; } return null ; } public < T > T fromJsonLD ( String jsonld , Class < T > classOfT ) { } private < T > T mapJsonLDtoObject ( Map < ? , ? > jsonLDProperties , Class < T > classOfT ) throws IllegalAccessException , InstantiationException { } private boolean isSemanticClass ( Field field ) { } }

Fix:
if ( field . isAnnotationPresent ( SemanticProperty . class ) ) {
Buggy code:
public abstract class GameInstance { private boolean isRunning = true ; private long startTime ; public List < Window > windows ; public List < GameUpdate > updates ; public GameInstance ( ) { } public void init ( ) { } public void start ( ) { startTime = System . currentTimeMillis ( ) ; while ( isRunning ) { boolean allClosed = true ; for ( int i = 0 ; i < ( windows . size ( ) ) ; i ++ ) { Window window = windows . get ( i ) ; <START_BUG> if ( ( glfwWindowShouldClose ( window . windowID ) ) == ( GLFW_FALSE ) ) <END_BUG> allClosed = false ; else { SYSTEM . log ( ( ( "Window<seq2seq4repair_space>'" + ( window . name ) ) + "'<seq2seq4repair_space>has<seq2seq4repair_space>been<seq2seq4repair_space>terminated" ) ) ; window . destroy ( ) ; windows . remove ( i ) ; i -- ; } } if ( allClosed ) break ; boolean finished = true ; for ( GameUpdate update : updates ) { if ( ( ( update . updates ) < ( update . frequency ) ) && ( ( ( update . lastUpdateTime ) + ( update . period ) ) <= ( getTime ( ) ) ) ) { long t = System . currentTimeMillis ( ) ; update . update ( getTime ( ) ) ; update . lastTimeTaken = ( System . currentTimeMillis ( ) ) - t ; } if ( ( update . updates ) != ( update . frequency ) ) finished = false ; } if ( finished || ( ( getTime ( ) ) >= 1000 ) ) { for ( GameUpdate update : updates ) { update . runPerSecondAction ( ) ; update . lastUpdateTime = - 100 ; update . updates = 0 ; } startTime = System . currentTimeMillis ( ) ; } else { long sleepTime = Long . MAX_VALUE ; for ( GameUpdate update : updates ) sleepTime = Long . min ( sleepTime , ( ( update . lastUpdateTime ) + ( update . period ) ) ) ; sleepTime -= getTime ( ) ; if ( ( sleepTime > 0 ) && ( sleepTime != ( Long . MAX_VALUE ) ) ) try { Thread . sleep ( sleepTime ) ; } catch ( InterruptedException e ) { e . printStackTrace ( ) ; windows . forEach ( Window :: destroy ) ; isRunning = false ; } } } } public long getTime ( ) { } public void process ( ) { } }

Fix:
if ( ! ( glfwWindowShouldClose ( window . windowID ) ) )
Buggy code:
public class SpellCheckComponent extends SearchComponent implements SpellingParams , SolrCoreAware { private static final Logger LOG = Logger . getLogger ( SpellCheckComponent . class . getName ( ) ) ; public static final boolean DEFAULT_ONLY_MORE_POPULAR = false ; public static final String COMPONENT_NAME = "spellcheck" ; @ SuppressWarnings ( "unchecked" ) protected NamedList initParams ; protected Map < String , SolrSpellChecker > spellCheckers = new ConcurrentHashMap < String , SolrSpellChecker > ( ) ; protected QueryConverter queryConverter ; @ Override @ SuppressWarnings ( "unchecked" ) public void init ( NamedList args ) { } @ Override @ SuppressWarnings ( "unchecked" ) public void prepare ( ResponseBuilder rb ) throws IOException { SolrParams params = rb . req . getParams ( ) ; if ( ! ( params . getBool ( SpellCheckComponent . COMPONENT_NAME , false ) ) ) { return ; } SolrSpellChecker spellChecker = getSpellChecker ( params ) ; if ( params . getBool ( SPELLCHECK_BUILD , false ) ) { <START_BUG> spellChecker . build ( rb . req . getCore ( ) ) ; <END_BUG> rb . rsp . add ( "command" , "build" ) ; } else if ( params . getBool ( SPELLCHECK_RELOAD , false ) ) { spellChecker . reload ( ) ; rb . rsp . add ( "command" , "reload" ) ; } } @ Override @ SuppressWarnings ( "unchecked" ) public void process ( ResponseBuilder rb ) throws IOException { } private Collection < Token > getTokens ( String q , Analyzer analyzer ) throws IOException { } protected SolrSpellChecker getSpellChecker ( SolrParams params ) { } public SolrSpellChecker getSpellChecker ( String name ) { } protected NamedList toNamedList ( SpellingResult spellingResult , String origQuery , boolean extendedResults , boolean collate ) { } public void inform ( SolrCore core ) { } @ Override public String getDescription ( ) { } @ Override public String getVersion ( ) { } @ Override public String getSourceId ( ) { } @ Override public String getSource ( ) { } }

Fix:
spellChecker . build ( rb . req . getCore ( ) , rb . req . getSearcher ( ) ) ;
Buggy code:
public class AccountDialog extends JDialog implements ActionListener { private AccountItem accountItem ; private IdentityPanel identityPanel ; private IncomingServerPanel incomingServerPanel ; private OutgoingServerPanel outgoingServerPanel ; private SecurityPanel securityPanel ; private ReceiveOptionsPanel receiveOptionsPanel ; private SpamPanel spamPanel ; private JPanel selected = null ; private JTabbedPane tp ; private FrameMediator mediator ; public AccountDialog ( FrameMediator mediator , AccountItem item ) { } protected void createPanels ( ) { identityPanel = new IdentityPanel ( accountItem ) ; receiveOptionsPanel = new ReceiveOptionsPanel ( this , accountItem ) ; incomingServerPanel = new IncomingServerPanel ( this , accountItem , receiveOptionsPanel ) ; <START_BUG> outgoingServerPanel = new OutgoingServerPanel ( accountItem ) ; <END_BUG> securityPanel = new SecurityPanel ( accountItem . getPGPItem ( ) ) ; spamPanel = new SpamPanel ( mediator , accountItem ) ; } protected void initComponents ( ) { } protected JPanel createButtonPanel ( ) { } protected boolean isFinished ( ) { } public void actionPerformed ( ActionEvent e ) { } }

Fix:
outgoingServerPanel = new OutgoingServerPanel ( this , accountItem ) ;