nus-yam/ex-repair huggingface dataset:
Buggy code:
class XMLFileHandler extends DefaultHandler { private static final String TAG_EVENT = "log4j:event" ; private static final String TAG_MESSAGE = "log4j:message" ; private static final String TAG_NDC = "log4j:NDC" ; private static final String TAG_THROWABLE = "log4j:throwable" ; private static final String TAG_LOCATION_INFO = "log4j:locationInfo" ; private final MyTableModel mModel ; private int mNumEvents ; private String mCurrentElement ; private long mTimeStamp ; private Priority mPriority ; private String mCategoryName ; private String mNDC ; private String mThreadName ; private String mMessage ; private String [ ] mThrowableStrRep ; private String mLocationDetails ; XMLFileHandler ( MyTableModel aModel ) { } public void startDocument ( ) throws SAXException { } public void characters ( char [ ] aChars , int aStart , int aLength ) { } public void endElement ( String aNamespaceURI , String aLocalName , String aQName ) { } public void startElement ( String aNamespaceURI , String aLocalName , String aQName , Attributes aAtts ) { if ( XMLFileHandler . TAG_EVENT . equals ( aQName ) ) { mThreadName = aAtts . getValue ( "thread" ) ; mTimeStamp = Long . parseLong ( aAtts . getValue ( "timestamp" ) ) ; mCategoryName = aAtts . getValue ( "category" ) ; <START_BUG> mPriority = Priority . toPriority ( aAtts . getValue ( "priority" ) ) ; <END_BUG> } else if ( XMLFileHandler . TAG_LOCATION_INFO . equals ( aQName ) ) { mLocationDetails = ( ( ( ( ( ( ( aAtts . getValue ( "class" ) ) + "." ) + ( aAtts . getValue ( "method" ) ) ) + "(" ) + ( aAtts . getValue ( "file" ) ) ) + ":" ) + ( aAtts . getValue ( "line" ) ) ) + ")" ; } else if ( XMLFileHandler . TAG_NDC . equals ( aQName ) ) { mCurrentElement = XMLFileHandler . TAG_NDC ; } else if ( XMLFileHandler . TAG_MESSAGE . equals ( aQName ) ) { mCurrentElement = XMLFileHandler . TAG_MESSAGE ; } else if ( XMLFileHandler . TAG_THROWABLE . equals ( aQName ) ) { mCurrentElement = XMLFileHandler . TAG_THROWABLE ; } } int getNumEvents ( ) { } private void addEvent ( ) { } private void resetData ( ) { } }

Fix:
mPriority = Priority . toPriority ( aAtts . getValue ( "level" ) ) ;
Buggy code:
public class TestTestCompiler extends TestCase { public TestTestCompiler ( String name ) { } public void testConfigGathering ( ) throws Exception { ListedHashTree testing = new ListedHashTree ( ) ; GenericController controller = new GenericController ( ) ; ConfigTestElement config1 = new ConfigTestElement ( ) ; config1 . setName ( "config1" ) ; config1 . setProperty ( "test.property" , "A<seq2seq4repair_space>test<seq2seq4repair_space>value" ) ; TestTestCompiler . TestSampler sampler = new TestTestCompiler . TestSampler ( ) ; sampler . setName ( "sampler" ) ; testing . add ( controller , config1 ) ; testing . add ( controller , sampler ) ; TestCompiler . initialize ( ) ; <START_BUG> TestCompiler compiler = new TestCompiler ( testing , new JMeterVariables ( ) ) ; <END_BUG> testing . traverse ( compiler ) ; sampler = ( ( TestTestCompiler . TestSampler ) ( compiler . configureSampler ( sampler ) . getSampler ( ) ) ) ; assertEquals ( "A<seq2seq4repair_space>test<seq2seq4repair_space>value" , sampler . getPropertyAsString ( "test.property" ) ) ; } class TestSampler extends AbstractSampler { private static final long serialVersionUID = 240L ; public SampleResult sample ( Entry e ) { } @ Override public Object clone ( ) { } } }

Fix:
TestCompiler compiler = new TestCompiler ( testing ) ;
Buggy code:
public class Logic extends Thread { String ip ; int port ; String path ; String savePath ; String command ; void setMessage ( String ip , int port , String path , String savePath , String command ) { } public void run ( ) { } private void shutDown ( ) throws IOException , UnknownHostException { } private void upload ( ) throws IOException , UnknownHostException { } private void download ( ) throws IOException , UnknownHostException { Client client ; client = new Client ( ip , port ) ; Node node ; Node ret ; node = new Node ( ) ; ret = new Node ( ) ; node . setCommand ( "get<seq2seq4repair_space>file<seq2seq4repair_space>length" ) ; node . setFrom ( 0 ) ; node . setTo ( 0 ) ; node . setPort ( 0 ) ; node . setLength ( 0 ) ; node . setSavePath ( savePath ) ; node . setPath ( path ) ; client . connect ( ) ; ret = client . send ( node ) ; node . setCommand ( "download" ) ; node . setFrom ( 0 ) ; node . setTo ( ret . getLength ( ) ) ; node . setLength ( ret . getLength ( ) ) ; client . connect ( ) ; ret = client . send ( node ) ; node . setPort ( ret . getPort ( ) ) ; client . startFileClient ( node ) ; while ( ! ( client . isEnd ( ) ) ) { showState . setStringPainted ( true ) ; <START_BUG> showState . setValue ( ( ( client . getStatus ( ) ) + 30 ) ) ; <END_BUG> } show . remove ( showState ) ; JOptionPane . showMessageDialog ( null , "download<seq2seq4repair_space>ok" , "message" , JOptionPane . INFORMATION_MESSAGE ) ; } }

Fix:
showState . setValue ( client . getStatus ( ) ) ;
Buggy code:
public class MenuItem extends Item { Menu parent ; Menu menu ; public MenuItem ( Menu parent , int style ) { } public MenuItem ( Menu parent , int style , int index ) { } public void addArmListener ( ArmListener listener ) { } public void addHelpListener ( HelpListener listener ) { } public void addSelectionListener ( SelectionListener listener ) { } protected void checkSubclass ( ) { } static int checkStyle ( int style ) { } void createHandle ( ) { } void deregister ( ) { } void destroyWidget ( ) { parent . destroyItem ( this ) ; <START_BUG> super . destroyWidget ( ) ; <END_BUG> } void fixMenus ( Decorations newParent ) { } public int getAccelerator ( ) { } Rectangle getBounds ( ) { } public boolean getEnabled ( ) { } public Menu getMenu ( ) { } String getNameText ( ) { } public Menu getParent ( ) { } public boolean getSelection ( ) { } void HandleClick ( int sender , int e ) { } void HandleSubmenuOpened ( int sender , int e ) { } void HandleSubmenuClosed ( int sender , int e ) { } void hookEvents ( ) { } public boolean isEnabled ( ) { } void register ( ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void releaseMenu ( ) { } void releaseParent ( ) { } public void removeArmListener ( ArmListener listener ) { } public void removeHelpListener ( HelpListener listener ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setAccelerator ( int accelerator ) { } public void setEnabled ( boolean enabled ) { } public void setImage ( Image image ) { } public void setMenu ( Menu menu ) { } public void setSelection ( boolean selected ) { } public void setText ( String string ) { } }

Fix:
releaseHandle ( ) ;
Buggy code:
public final class WSHandlerChainAnnotationProcessor implements DeploymentUnitProcessor { @ Override public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit unit = phaseContext . getDeploymentUnit ( ) ; if ( DeploymentTypeMarker . isType ( EAR , unit ) ) { return ; } AttachmentList < ResourceRoot > resourceRoots = unit . getAttachment ( RESOURCE_ROOTS ) ; <START_BUG> if ( EjbDeploymentMarker . isEjbDeployment ( unit ) ) { <END_BUG> resourceRoots = new AttachmentList < ResourceRoot > ( ResourceRoot . class ) ; final ResourceRoot root = unit . getAttachment ( DEPLOYMENT_ROOT ) ; resourceRoots . add ( root ) ; } if ( resourceRoots == null ) { return ; } final WSEndpointHandlersMapping mapping = new WSEndpointHandlersMapping ( ) ; Index index = null ; for ( final ResourceRoot resourceRoot : resourceRoots ) { index = resourceRoot . getAttachment ( ANNOTATION_INDEX ) ; if ( index != null ) { WSHandlerChainAnnotationProcessor . processHandlerChainAnnotations ( resourceRoot , index , mapping ) ; } } if ( ! ( mapping . isEmpty ( ) ) ) { unit . putAttachment ( WS_ENDPOINT_HANDLERS_MAPPING_KEY , mapping ) ; } } @ Override public void undeploy ( final DeploymentUnit context ) { } private static void processHandlerChainAnnotations ( final ResourceRoot resourceRoot , final Index index , final WSEndpointHandlersMapping mapping ) throws DeploymentUnitProcessingException { } private static void processHandlerChainAnnotation ( final ResourceRoot resourceRoot , final AnnotationInstance handlerChainAnnotation , final String endpointClass , final WSEndpointHandlersMapping mapping ) throws DeploymentUnitProcessingException { } private static InputStream getInputStream ( final ResourceRoot resourceRoot , final String handlerChainConfigFile , final String annotatedClassName ) throws IOException { } private static Set < String > getHandlers ( final InputStream is ) throws IOException { } private static boolean isJaxwsEndpoint ( final ClassInfo clazz , final Index index ) { } }

Fix:
if ( ( ! ( unit . getName ( ) . endsWith ( ".war" ) ) ) && ( EjbDeploymentMarker . isEjbDeployment ( unit ) ) ) {
Buggy code:
public class FileEditorMapping extends Object implements Cloneable , IFileEditorMapping { private String name = "*" ; private String extension ; private List editors = new ArrayList ( 1 ) ; private List deletedEditors = new ArrayList ( 1 ) ; public FileEditorMapping ( String extension ) { } public FileEditorMapping ( String name , String extension ) { } public void addEditor ( EditorDescriptor editor ) { } public Object clone ( ) { } public boolean equals ( Object obj ) { } private boolean compareList ( List l1 , List l2 ) { } public IEditorDescriptor getDefaultEditor ( ) { } public IEditorDescriptor [ ] getEditors ( ) { } public IEditorDescriptor [ ] getDeletedEditors ( ) { } public String getExtension ( ) { } public ImageDescriptor getImageDescriptor ( ) { } public String getLabel ( ) { } public String getName ( ) { } public void removeEditor ( EditorDescriptor editor ) { } public void setDefaultEditor ( EditorDescriptor editor ) { } public void setEditorsList ( List newEditors ) { } public void setDeletedEditorsList ( List newDeletedEditors ) { } public void setExtension ( String extension ) { } public void setName ( String name ) { } private List filteredEditors ( ) { <START_BUG> if ( ! ( RoleManager . getInstance ( ) . filterRoles ) ) <END_BUG> return editors ; ArrayList filtered = new ArrayList ( ) ; RoleManager manager = RoleManager . getInstance ( ) ; Iterator editorsIterator = editors . iterator ( ) ; while ( editorsIterator . hasNext ( ) ) { IEditorDescriptor next = ( ( IEditorDescriptor ) ( editorsIterator . next ( ) ) ) ; if ( manager . isEnabledId ( next . getId ( ) ) ) filtered . add ( next ) ; } return filtered ; } }

Fix:
if ( ! ( RoleManager . getInstance ( ) . isFiltering ( ) ) )
Buggy code:
public class BodyContainsSearchProvider extends AbstractMailSearchProvider implements ISearchProvider { public BodyContainsSearchProvider ( ) { } public String getName ( ) { <START_BUG> return "Body_Contains" ; <END_BUG> } public String getNamespace ( ) { } public ISearchCriteria getCriteria ( String searchTerm ) { } @ Override protected FilterCriteria createFilterCriteria ( String searchTerm ) { } }

Fix:
return "body_contains" ;
Buggy code:
public class ScarabRequestTool implements Recyclable , ScarabRequestScope { private RunData data ; private ScarabUser user = null ; private Issue issue = null ; private Attribute attribute = null ; private Attachment attachment = null ; private ModuleEntity module = null ; private AttributeOption attributeOption = null ; public void init ( Object data ) { } public void refresh ( ) { } public ScarabRequestTool ( ) { } public void setAttribute ( Attribute attribute ) { } private IntakeTool getIntakeTool ( ) { } public void setAttributeOption ( AttributeOption option ) { } public AttributeOption getAttributeOption ( ) throws Exception { } public void setUser ( ScarabUser user ) { } public ScarabUser getUser ( ) { } public Attribute getAttribute ( ) throws Exception { } public Attachment getAttachment ( ) throws Exception { } public void setModule ( ModuleEntity module ) { } public ModuleEntity getModule ( ) throws Exception { } public RModuleAttribute getRModuleAttribute ( ) throws Exception { } public ModuleEntity getModule ( String key ) throws Exception { } public void setIssue ( Issue issue ) { } public Issue getIssue ( ) throws Exception { } public Issue getSearch ( ) throws Exception { IssueSearch search = new IssueSearch ( ) ; <START_BUG> search . setModule ( ( ( ScarabUser ) ( getUser ( ) ) ) . getCurrentModule ( ) ) ; <END_BUG> return search ; } public Issue getIssue ( String key ) throws Exception { } private boolean disposed ; public void recycle ( ) { } public void dispose ( ) { } public boolean isDisposed ( ) { } }

Fix:
search . setModuleCast ( ( ( ScarabUser ) ( getUser ( ) ) ) . getCurrentModule ( ) ) ;
Buggy code:
public class DocletInfo { private ArrayList m_params = new ArrayList ( ) ; private String m_name ; private Path m_path ; public void setName ( final String name ) { } public void setPath ( final Path path ) throws TaskException { } public void setPathRef ( final Reference reference ) throws TaskException { } public String getName ( ) { } public Iterator getParams ( ) { } public Path getPath ( ) { } public DocletParam createParam ( ) { } public Path createPath ( ) throws TaskException { if ( ( m_path ) == null ) { <START_BUG> m_path = new Path ( null ) ; <END_BUG> } return m_path . createPath ( ) ; } }

Fix:
m_path = new Path ( ) ;
Buggy code:
public class Fragment extends WebMarkupContainer { private static final long serialVersionUID = 1L ; private String markupId ; private MarkupContainer markupProvider ; public Fragment ( final String id , final String markupId ) { } public Fragment ( final String id , final String markupId , final IModel model ) { } public Fragment ( final String id , final String markupId , final MarkupContainer markupProvider ) { } public Fragment ( final String id , final String markupId , final MarkupContainer markupProvider , final IModel model ) { } public final void setMarkupTagReferenceId ( final String markupId ) { } protected void onComponentTag ( final ComponentTag tag ) { } protected void onComponentTagBody ( final MarkupStream markupStream , final ComponentTag openTag ) { } protected MarkupStream chooseMarkupStream ( final MarkupStream markupStream ) { } private void renderFragment ( final MarkupStream providerMarkupStream , final ComponentTag openTag ) { int currentIndex = providerMarkupStream . getCurrentIndex ( ) ; int index = providerMarkupStream . findComponentIndex ( null , markupId ) ; if ( index == ( - 1 ) ) { <START_BUG> throw new org . apache . wicket . markup . MarkupException ( ( ( ( ( ( "Markup<seq2seq4repair_space>of<seq2seq4repair_space>component<seq2seq4repair_space>class<seq2seq4repair_space>`" + ( providerMarkupStream . getContainerClass ( ) . getName ( ) ) ) + "`<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>a<seq2seq4repair_space>fragment<seq2seq4repair_space>with<seq2seq4repair_space>id<seq2seq4repair_space>`" ) + ( markupId ) ) + "`.<seq2seq4repair_space>Context:<seq2seq4repair_space>" ) + ( toString ( ) ) ) ) ; <END_BUG> } providerMarkupStream . setCurrentIndex ( index ) ; try { ComponentTag fragmentOpenTag = providerMarkupStream . getTag ( ) ; providerMarkupStream . next ( ) ; super . onComponentTagBody ( providerMarkupStream , fragmentOpenTag ) ; } finally { providerMarkupStream . setCurrentIndex ( currentIndex ) ; } } }

Fix:
throw new org . apache . wicket . markup . MarkupException ( ( ( ( ( ( "Markup<seq2seq4repair_space>of<seq2seq4repair_space>component<seq2seq4repair_space>class<seq2seq4repair_space>`" + ( providerMarkupStream . getContainerClass ( ) . getName ( ) ) ) + "`<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>contain<seq2seq4repair_space>a<seq2seq4repair_space>fragment<seq2seq4repair_space>with<seq2seq4repair_space>wicket:id<seq2seq4repair_space>`" ) + ( markupId ) ) + "`.<seq2seq4repair_space>Context:<seq2seq4repair_space>" ) + ( toString ( ) ) ) ) ;
Buggy code:
public class ArduBlockToolFrame extends JFrame { private static final long serialVersionUID = 2841155965906223806L ; private Context context ; public void addListener ( OpenblocksFrameListener ofl ) { } public ArduBlockToolFrame ( ) { } private void initOpenBlocks ( ) { Context context = Context . getContext ( ) ; WorkspaceController workspaceController = context . getWorkspaceController ( ) ; JComponent workspaceComponent = workspaceController . getWorkspacePanel ( ) ; Workspace workspace = new Workspace ( ) ; workspace . addWorkspaceListener ( new ArdublockWorkspaceListener ( this ) ) ; JPanel buttons = new JPanel ( ) ; buttons . setLayout ( new FlowLayout ( ) ) ; JButton saveButton = new JButton ( "Save" ) ; saveButton . addActionListener ( new SaveButtonListener ( this ) ) ; JButton openButton = new JButton ( "Load" ) ; openButton . addActionListener ( new OpenButtonListener ( this ) ) ; JButton generateButton = new JButton ( "Upload" ) ; <START_BUG> generateButton . addActionListener ( new com . ardublock . ui . listener . GenerateCodeButtonListener ( this , workspace ) ) ; <END_BUG> buttons . add ( saveButton ) ; buttons . add ( openButton ) ; buttons . add ( generateButton ) ; this . add ( buttons , BorderLayout . NORTH ) ; this . add ( workspaceComponent , BorderLayout . CENTER ) ; } }

Fix:
generateButton . addActionListener ( new com . ardublock . ui . listener . GenerateCodeButtonListener ( this , context ) ) ;
Buggy code:
public class JavaModelCache { public static final int PKG_CACHE_SIZE = 500 ; public static final int OPENABLE_CACHE_SIZE = 2000 ; protected JavaModelInfo modelInfo ; protected Map projectAndRootCache ; protected Map pkgCache ; protected OverflowingLRUCache openableCache ; protected Map childrenCache ; public JavaModelCache ( ) { } public double openableFillingRate ( ) { } public int pkgSize ( ) { } public Object getInfo ( IJavaElement element ) { } <START_BUG> public IJavaModel getJavaModel ( ) { <END_BUG> if ( ( this . modelInfo ) == null ) { return null ; } else { return this . modelInfo . getJavaModel ( ) ; } } protected Object peekAtInfo ( IJavaElement element ) { } protected void putInfo ( IJavaElement element , Object info ) { } protected void removeInfo ( IJavaElement element ) { } }

Fix:
public JavaModel getJavaModel ( ) {
Buggy code:
class DefaultCategoryFactory implements CategoryFactory { DefaultCategoryFactory ( ) { } <START_BUG> public Category makeNewCategoryInstance ( String name ) { <END_BUG> return new Category ( name ) ; } }

Fix:
public Logger makeNewCategoryInstance ( String name ) {
Buggy code:
final class RangeToken extends Token implements Serializable { private static final long serialVersionUID = - 553983121197679934L ; int [ ] ranges ; boolean sorted ; boolean compacted ; RangeToken icaseCache = null ; int [ ] map = null ; int nonMapIndex ; RangeToken ( int type ) { } protected void addRange ( int start , int end ) { } private final boolean isSorted ( ) { } private final void setSorted ( boolean sort ) { } private final boolean isCompacted ( ) { } private final void setCompacted ( ) { } protected void sortRanges ( ) { } protected void compactRanges ( ) { } protected void mergeRanges ( Token token ) { } protected void subtractRanges ( Token token ) { } protected void intersectRanges ( Token token ) { } static Token complementRanges ( Token token ) { } synchronized RangeToken getCaseInsensitiveToken ( ) { if ( ( this . icaseCache ) != null ) return this . icaseCache ; RangeToken uppers = ( ( this . type ) == ( Token . RANGE ) ) ? Token . createRange ( ) : Token . createNRange ( ) ; for ( int i = 0 ; i < ( this . ranges . length ) ; i += 2 ) { for ( int ch = this . ranges [ i ] ; ch <= ( this . ranges [ ( i + 1 ) ] ) ; ch ++ ) { if ( ch > 65535 ) uppers . addRange ( ch , ch ) ; else { char uch = Character . toUpperCase ( ( ( char ) ( ch ) ) ) ; uppers . addRange ( uch , uch ) ; } } } RangeToken lowers = ( ( this . type ) == ( Token . RANGE ) ) ? Token . createRange ( ) : Token . createNRange ( ) ; for ( int i = 0 ; i < ( uppers . ranges . length ) ; i += 2 ) { for ( int ch = uppers . ranges [ i ] ; ch <= ( uppers . ranges [ ( i + 1 ) ] ) ; ch ++ ) { if ( ch > 65535 ) lowers . addRange ( ch , ch ) ; else { <START_BUG> char uch = Character . toUpperCase ( ( ( char ) ( ch ) ) ) ; <END_BUG> lowers . addRange ( uch , uch ) ; } } } lowers . mergeRanges ( uppers ) ; lowers . mergeRanges ( this ) ; lowers . compactRanges ( ) ; this . icaseCache = lowers ; return lowers ; } void dumpRanges ( ) { } boolean match ( int ch ) { } private static final int MAPSIZE = 256 ; private void createMap ( ) { } public String toString ( int options ) { } private static String escapeCharInCharClass ( int ch ) { } }

Fix:
char uch = Character . toLowerCase ( ( ( char ) ( ch ) ) ) ;
Buggy code:
public class TwitterTopicAvroSerializer extends GenericAvroArraySerializer < TwitterDemoTopicRecord > { private static final long serialVersionUID = 3643598270516282371L ; private static final TypeDescriptor TYPE_DESCRIPTOR = new TypeDescriptor ( TwitterDemoTopicRecord . class ) ; public TwitterTopicAvroSerializer ( CodecFactory compressionCodec ) { } @ Override protected String getEntrySchemaFile ( ) { } private List < RecentTweet > recentListTOJava ( GenericRecord entry ) { @ SuppressWarnings ( "unchecked" ) GenericData . Array < GenericRecord > values = ( ( GenericData . Array < GenericRecord > ) ( entry . get ( "recentTweets" ) ) ) ; List < RecentTweet > results = new ArrayList < > ( ) ; for ( GenericRecord value : values ) { <START_BUG> results . add ( new RecentTweet ( value . get ( "tweet" ) . toString ( ) , ( ( Long ) ( value . get ( "time" ) ) ) , ( ( String ) ( value . get ( "user" ) ) ) , ( ( String ) ( value . get ( "sentiment" ) ) ) ) ) ; <END_BUG> } return results ; } @ SuppressWarnings ( "unchecked" ) @ Override protected TwitterDemoTopicRecord getEntryValue ( GenericRecord entry ) { } private List < GenericRecord > recentListToAvro ( Schema mainSchema , List < RecentTweet > elts ) { } @ Override protected void setEntryValue ( GenericRecord avroEntry , TwitterDemoTopicRecord rawEntry ) { } }

Fix:
results . add ( new RecentTweet ( value . get ( "tweet" ) . toString ( ) , ( ( Long ) ( value . get ( "time" ) ) ) , value . get ( "user" ) . toString ( ) , value . get ( "sentiment" ) . toString ( ) ) ) ;
Buggy code:
public class Start { public static void main ( String [ ] args ) throws InterruptedException { new JFrame ( ) . setVisible ( true ) ; NetworkTable . setClientMode ( ) ; NetworkTable . setIPAddress ( "roboRIO-1719.local" ) ; NetworkTable table = NetworkTable . getTable ( "SmartDashboard" ) ; <START_BUG> table . putValue ( "keyflags" , 0L ) ; <END_BUG> KeyboardFocusManager . getCurrentKeyboardFocusManager ( ) . addKeyEventDispatcher ( new KeyTracker ( table ) ) ; } }

Fix:
table . putNumber ( "keyflags" , Double . longBitsToDouble ( 0L ) ) ;
Buggy code:
public class ParsedRaDeploymentProcessor implements DeploymentUnitProcessor { public static final Logger log = Logger . getLogger ( "org.jboss.as.connector.deployer.radeployer" ) ; public ParsedRaDeploymentProcessor ( ) { } public void deploy ( DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { <START_BUG> final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext . getAttachment ( ATTACHMENT_KEY ) ; <END_BUG> if ( connectorXmlDescriptor == null ) { return ; } final IronJacamarXmlDescriptor ironJacamarXmlDescriptor = phaseContext . getAttachment ( IronJacamarXmlDescriptor . ATTACHMENT_KEY ) ; final Module module = phaseContext . getAttachment ( MODULE_ATTACHMENT_KEY ) ; if ( module == null ) throw new DeploymentUnitProcessingException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>get<seq2seq4repair_space>module<seq2seq4repair_space>attachment<seq2seq4repair_space>for<seq2seq4repair_space>deployment:<seq2seq4repair_space>" + ( phaseContext . getName ( ) ) ) ) ; final ClassLoader classLoader = module . getClassLoader ( ) ; Connector cmd = ( connectorXmlDescriptor != null ) ? connectorXmlDescriptor . getConnector ( ) : null ; final IronJacamar ijmd = ( ironJacamarXmlDescriptor != null ) ? ironJacamarXmlDescriptor . getIronJacamar ( ) : null ; try { Annotations annotator = new Annotations ( ) ; AnnotationRepository repository = new org . jboss . as . connector . annotations . repository . jandex . JandexAnnotationRepositoryImpl ( phaseContext . getAttachment ( ANNOTATION_INDEX ) , classLoader ) ; cmd = annotator . merge ( cmd , repository , classLoader ) ; cmd . validate ( ) ; cmd = new Merger ( ) . mergeConnectorWithCommonIronJacamar ( ijmd , cmd ) ; final ResourceAdapterDeploymentService raDeployementService = new ResourceAdapterDeploymentService ( connectorXmlDescriptor , cmd , ijmd , module ) ; final ServiceTarget serviceTarget = phaseContext . getBatchBuilder ( ) ; serviceTarget . addService ( RESOURCE_ADAPTER_SERVICE_PREFIX . append ( connectorXmlDescriptor . getDeploymentName ( ) ) , raDeployementService ) . addDependency ( IRONJACAMAR_MDR , MetadataRepository . class , raDeployementService . getMdrInjector ( ) ) . addDependency ( RESOURCE_ADAPTER_REGISTRY_SERVICE , ResourceAdapterDeploymentRegistry . class , raDeployementService . getRegistryInjector ( ) ) . addDependency ( JNDI_STRATEGY_SERVICE , JndiStrategy . class , raDeployementService . getJndiInjector ( ) ) . addDependency ( JBOSS_TXN_TRANSACTION_MANAGER , TransactionManagerService . class , raDeployementService . getTxmInjector ( ) ) . addDependency ( CONNECTOR_CONFIG_SERVICE , ConnectorSubsystemConfiguration . class , raDeployementService . getConfigInjector ( ) ) . addDependency ( SERVICE_NAME ) . setInitialMode ( ACTIVE ) . install ( ) ; } catch ( Throwable t ) { throw new DeploymentUnitProcessingException ( t ) ; } } }

Fix:
final ConnectorXmlDescriptor connectorXmlDescriptor = phaseContext . getDeploymentUnitContext ( ) . getAttachment ( ATTACHMENT_KEY ) ;
Buggy code:
public class DOMWriterImpl implements DOMWriter { private String fEncoding ; private XMLSerializer serializer ; public DOMWriterImpl ( boolean namespaces ) { } public void setFeature ( String name , boolean state ) throws DOMException { } public boolean canSetFeature ( String name , boolean state ) { } public boolean getFeature ( String name ) throws DOMException { } public String getEncoding ( ) { } public void setEncoding ( String encoding ) { } public DOMErrorHandler getErrorHandler ( ) { } public void setErrorHandler ( DOMErrorHandler errorHandler ) { } public boolean writeNode ( OutputStream destination , Node wnode ) throws Exception { } public String writeToString ( Node wnode ) throws DOMException { } public void setNewLine ( String newLine ) { } public String getNewLine ( ) { } public DOMWriterFilter getFilter ( ) { } public void setFilter ( DOMWriterFilter filter ) { } private boolean reset ( ) { serializer . reset ( ) ; <START_BUG> serializer . fNSBinder . reset ( serializer . fSymbolTable ) ; <END_BUG> serializer . fNSBinder . declarePrefix ( EMPTY_STRING , EMPTY_STRING ) ; serializer . fNamespaceCounter = 1 ; return true ; } private void checkAllFeatures ( ) { } }

Fix:
serializer . fNSBinder . reset ( ) ;
Buggy code:
public class NullIdeProperties implements ProjectPropertiesAdapter { private String testProjectPath = "" ; private List buildConfigFiles = new ArrayList ( ) ; private Set inJars ; private Set inpath ; private Set sourceRoots ; private Set aspectPath ; private String outJar ; public NullIdeProperties ( String testProjectPath ) { } public List getBuildConfigFiles ( ) { } public String getLastActiveBuildConfigFile ( ) { } public String getDefaultBuildConfigFile ( ) { } public String getProjectName ( ) { } public String getRootProjectDir ( ) { } public List getProjectSourceFiles ( ) { } public String getProjectSourcePath ( ) { } public String getClasspath ( ) { <START_BUG> return ( ( ( ( ( ( testProjectPath ) + ( File . pathSeparator ) ) + ( System . getProperty ( "sun.boot.class.path" ) ) ) + ( File . pathSeparator ) ) + "..//runtime//bin" ) + ( File . pathSeparator ) ) + ( System . getProperty ( "aspectjrt.path" ) ) ; <END_BUG> } public String getOutputPath ( ) { } public String getAjcWorkingDir ( ) { } public String getBootClasspath ( ) { } public String getClassToExecute ( ) { } public String getExecutionArgs ( ) { } public String getVmArgs ( ) { } public void setInJars ( Set jars ) { } public void setInpath ( Set path ) { } public Set getInJars ( ) { } public Set getInpath ( ) { } public Map getSourcePathResources ( ) { } public void setOutJar ( String jar ) { } public String getOutJar ( ) { } public void setSourceRoots ( Set roots ) { } public Set getSourceRoots ( ) { } public void setAspectPath ( Set path ) { } public Set getAspectPath ( ) { } }

Fix:
return ( ( ( ( ( ( ( ( testProjectPath ) + ( File . pathSeparator ) ) + ( System . getProperty ( "sun.boot.class.path" ) ) ) + ( File . pathSeparator ) ) + "..//runtime//bin" ) + ( File . pathSeparator ) ) + "..//aspectj5rt//bin" ) + ( File . pathSeparator ) ) + ( System . getProperty ( "aspectjrt.path" ) ) ;
Buggy code:
final class SearchResultLabelProvider extends DelegatingStyledCellLabelProvider implements IStyledLabelProvider { private static final String HIGHLIGHT_BG_COLOR_NAME = "org.eclipse.search.ui.match.highlight" ; private static final Styler HIGHLIGHT_STYLE = StyledString . createColorRegistryStyler ( null , SearchResultLabelProvider . HIGHLIGHT_BG_COLOR_NAME ) ; private static final CharMatcher NON_WHITESPACE_MATCHER = CharMatcher . WHITESPACE . negate ( ) ; private final boolean isTree ; private final SearchResultPage page ; public SearchResultLabelProvider ( SearchResultPage page , boolean isTree ) { } @ Override public StyledString getStyledText ( Object element ) { } private StyledString getFileStyledText ( IFile file ) { } private StyledString getLineStyledText ( LineResult lineResult ) { StyledString string = new StyledString ( ) ; ReferenceEntryEx firstReference = lineResult . getMatches ( ) . get ( 0 ) . getReference ( ) ; int lineNumber = firstReference . getLineNumber ( ) ; String lineNumberString = MessageFormat . format ( "{0,number,integer}:<seq2seq4repair_space>" , ( lineNumber + 1 ) ) ; string . append ( lineNumberString , QUALIFIER_STYLER ) ; int lineStart = firstReference . getLineStart ( ) ; String line = firstReference . getLine ( ) ; int trimStart = SearchResultLabelProvider . NON_WHITESPACE_MATCHER . indexIn ( line ) ; int trimEnd = SearchResultLabelProvider . NON_WHITESPACE_MATCHER . lastIndexIn ( line ) ; <START_BUG> string . append ( line . substring ( trimStart , trimEnd ) ) ; <END_BUG> for ( FindReferenceMatch match : lineResult . getMatches ( ) ) { ReferenceEntryEx reference = match . getReference ( ) ; TextSpan textSpan = reference . getTextSpan ( ) ; int offset = ( ( ( textSpan . getStart ( ) ) + ( lineNumberString . length ( ) ) ) - trimStart ) - lineStart ; int length = textSpan . getLength ( ) ; if ( ( offset + length ) <= ( string . length ( ) ) ) { string . setStyle ( offset , length , SearchResultLabelProvider . HIGHLIGHT_STYLE ) ; } } return string ; } private static final class MyWorkbenchLabelProvider extends DecoratingStyledCellLabelProvider implements IStyledLabelProvider { private MyWorkbenchLabelProvider ( ) { } @ Override public StyledString getStyledText ( Object element ) { } } }

Fix:
string . append ( line . substring ( trimStart , ( trimEnd + 1 ) ) ) ;
Buggy code:
@ RunWith ( MockitoJUnitRunner . class ) public class ShowTraineesEligibleForTrainingServiceTest { @ Mock TrainingTypeService trainingTypeService ; @ Mock ShowTraineesEligibleForTrainingManager manager ; TraineesEligibleForTrainingDto REF_ELIGIBLE_DTO = null ; ShowTraineesEligibleForTrainingService service = null ; public Long EXISTING_TRAINING_TYPE_ID = 2L ; public Long NOT_EXISTING_TRAINING_TYPE_ID = - 1L ; @ SuppressWarnings ( "unchecked" ) @ Before public void setUp ( ) throws DatabaseEntityNotFoundException , ValidationException { service = new ShowTraineesEligibleForTrainingService ( ) ; service . setTrainingTypeService ( trainingTypeService ) ; <START_BUG> service . setManager ( manager ) ; <END_BUG> when ( trainingTypeService . getTrainingTypeById ( NOT_EXISTING_TRAINING_TYPE_ID ) ) . thenThrow ( DatabaseEntityNotFoundException . class ) ; UserDto hasEmailUser = new UserDto ( "Test<seq2seq4repair_space>Name<seq2seq4repair_space>1" , "1111111111111" , "email1@email.com" , 1L ) ; UserDto onlyPhoneUser = new UserDto ( "Test<seq2seq4repair_space>Name<seq2seq4repair_space>1" , "2222222222" , "2222222222@nincs.com" , 2L ) ; List < UserDto > hasEmailUserList = new ArrayList < > ( ) ; hasEmailUserList . add ( hasEmailUser ) ; List < UserDto > onlyPhoneUserList = new ArrayList < > ( ) ; onlyPhoneUserList . add ( onlyPhoneUser ) ; REF_ELIGIBLE_DTO = new TraineesEligibleForTrainingDto ( hasEmailUserList , onlyPhoneUserList ) ; when ( manager . getEligibleTraineesByTrainingTypeId ( EXISTING_TRAINING_TYPE_ID ) ) . thenReturn ( REF_ELIGIBLE_DTO ) ; } @ Test ( expected = ValidationException . class ) public void testGetEligibleTraineesByTrainingTypeIdTrTypeDoesntExist ( ) throws ValidationException { } @ Test public void testGetEligibleTraineesByTrainingTypeId ( ) throws ValidationException { } }

Fix:
service . setShowTraineesEligibleForTrainingManager ( manager ) ;
Buggy code:
public class LoginActivity extends Activity { static Authentication authenticate = new Authentication ( ) ; public static Authentication getAuthenticate ( ) { } private static final String DEFAULT = "N//A" ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onResume ( ) { super . onResume ( ) ; setContentView ( login ) ; if ( LoginActivity . authenticate . get_status ( ) ) { Intent intent = new Intent ( this , ChatMenuActivity . class ) ; startActivity ( intent ) ; } else { final SharedPreferences sharedPreferences = getSharedPreferences ( "LoginData" , MODE_PRIVATE ) ; final EditText usernameEditText = ( ( EditText ) ( findViewById ( NameEdit ) ) ) ; final EditText passwordEditText = ( ( EditText ) ( findViewById ( PassEdit ) ) ) ; final String username = sharedPreferences . getString ( "username" , LoginActivity . DEFAULT ) ; final String password = sharedPreferences . getString ( "password" , LoginActivity . DEFAULT ) ; if ( ( ! ( username . equals ( LoginActivity . DEFAULT ) ) ) && ( ! ( password . equals ( LoginActivity . DEFAULT ) ) ) ) { usernameEditText . setText ( username ) ; passwordEditText . setText ( password ) ; } Button logIn = ( ( Button ) ( findViewById ( btnLogin ) ) ) ; TextView registerScreen = ( ( TextView ) ( findViewById ( link_to_register ) ) ) ; logIn . setOnClickListener ( new View . OnClickListener ( ) { public void onClick ( View v ) { String username = usernameEditText . getText ( ) . toString ( ) ; <START_BUG> String password = usernameEditText . getText ( ) . toString ( ) ; <END_BUG> SharedPreferences . Editor editor = sharedPreferences . edit ( ) ; editor . putString ( "username" , username ) ; editor . putString ( "password" , password ) ; editor . apply ( ) ; LoginActivity . authenticate . Authenticate ( username , password ) ; onResume ( ) ; } } ) ; registerScreen . setOnClickListener ( new View . OnClickListener ( ) { public void onClick ( View v ) { Intent i = new Intent ( getApplicationContext ( ) , RegisterActivity . class ) ; startActivity ( i ) ; } } ) ; } } No newline ; at end ; of file ; }

Fix:
String password = passwordEditText . getText ( ) . toString ( ) ;
Buggy code:
public class ArrayInitializer extends Expression { public static final ChildListPropertyDescriptor EXPRESSIONS_PROPERTY = new ChildListPropertyDescriptor ( ArrayInitializer . class , "expressions" , Expression . class , ASTNode . CYCLE_RISK ) ; private static final List PROPERTY_DESCRIPTORS ; public static List propertyDescriptors ( int apiLevel ) { } private ASTNode . NodeList expressions = new ASTNode . NodeList ( ArrayInitializer . EXPRESSIONS_PROPERTY ) ; ArrayInitializer ( AST ast ) { } final List internalStructuralPropertiesForType ( int apiLevel ) { } final List internalGetChildListProperty ( ChildListPropertyDescriptor property ) { } final int getNodeType0 ( ) { } ASTNode clone0 ( AST target ) { ArrayInitializer result = new ArrayInitializer ( target ) ; <START_BUG> result . setSourceRange ( this . getStartPosition ( ) , this . getLength ( ) ) ; <END_BUG> result . expressions ( ) . addAll ( ASTNode . copySubtrees ( target , expressions ( ) ) ) ; return result ; } final boolean subtreeMatch0 ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { } public List expressions ( ) { } int memSize ( ) { } int treeSize ( ) { } }

Fix:
result . setSourceRange ( getStartPosition ( ) , getLength ( ) ) ;
Buggy code:
public class ServiceMonitor { private static final int RECHECK_DELAY = 2000 ; private static final int WAIT_FOR_STOP = 500 ; public interface Callbacks { void onNoService ( ) { } long onServiceStartAttempt ( ) { } } public static final int MSG_START_SERVICE = 1 ; public static final int MSG_CONTINUE_START_SERVICE = 2 ; public static final int MSG_STOP_SERVICE = 3 ; public static final int MSG_PACKAGE_INTENT = 4 ; public static final int MSG_CHECK_BOUND = 5 ; public static final int MSG_SERVICE_DISCONNECTED = 6 ; private final Handler mHandler = new Handler ( ) { public void handleMessage ( Message msg ) { } } ; private final ContentObserver mSettingObserver = new ContentObserver ( mHandler ) { public void onChange ( boolean selfChange ) { } public void onChange ( boolean selfChange , Uri uri ) { } } ; private final class SC implements ServiceConnection , IBinder . DeathRecipient { private ComponentName mName ; private IBinder mService ; public void onServiceConnected ( ComponentName name , IBinder service ) { } public void onServiceDisconnected ( ComponentName name ) { } public void binderDied ( ) { } } private final BroadcastReceiver mBroadcastReceiver = new BroadcastReceiver ( ) { public void onReceive ( Context context , Intent intent ) { } } ; private final String mTag ; private final boolean mDebug ; private final Context mContext ; private final String mSettingKey ; private final ServiceMonitor . Callbacks mCallbacks ; private ComponentName mServiceName ; private ServiceMonitor . SC mServiceConnection ; private boolean mBound ; public ServiceMonitor ( String ownerTag , boolean debug , Context context , String settingKey , ServiceMonitor . Callbacks callbacks ) { } public void start ( ) { } private ComponentName getComponentNameFromSetting ( ) { } private void packageIntent ( Intent intent ) { } private void stopService ( ) { } private void startService ( ) { } private void continueStartService ( ) { } private void serviceDisconnected ( ComponentName serviceName ) { } private void checkBound ( ) { } private void scheduleCheckBound ( ) { } private static String bundleToString ( Bundle bundle ) { if ( bundle == null ) return null ; <START_BUG> StringBuilder sb = new StringBuilder ( '{' ) ; <END_BUG> for ( String key : bundle . keySet ( ) ) { if ( ( sb . length ( ) ) > 1 ) sb . append ( ',' ) ; Object v = bundle . get ( key ) ; v = ( v instanceof String [ ] ) ? Arrays . asList ( ( ( String [ ] ) ( v ) ) ) : v ; sb . append ( key ) . append ( '=' ) . append ( v ) ; } return sb . append ( '}' ) . toString ( ) ; } public ComponentName getComponent ( ) { } public void setComponent ( ComponentName component ) { } public boolean isPackageAvailable ( ) { } }

Fix:
StringBuilder sb = new StringBuilder ( "{" ) ;
Buggy code:
public class JasperMangler implements Mangler { public JasperMangler ( String workDir , String docBase , String jspFile ) { } public String getClassName ( ) { } public String getJavaFileName ( ) { } public String getPackageName ( ) { } public String getClassFileName ( ) { } public String getJspFile ( ) { } public String getClassDir ( ) { } public String getServletClassName ( ) { } public int getVersion ( ) { } public String getBaseClassName ( ) { } public String getPackageDir ( ) { } public String getJspFilePath ( ) { } private String fixInvalidChars ( String className ) { StringBuffer modifiedClassName = new StringBuffer ( ) ; char c = '//' ; <START_BUG> if ( Character . isDigit ( className . charAt ( 0 ) ) ) { <END_BUG> className = "_" + className ; } for ( int i = 0 ; i < ( className . length ( ) ) ; i ++ ) { char prev = c ; c = className . charAt ( i ) ; if ( ( prev == '//' ) && ( c == '//' ) ) { continue ; } if ( ( ( ( Character . isLetterOrDigit ( c ) ) == true ) || ( c == '_' ) ) || ( c == '//' ) ) modifiedClassName . append ( className . substring ( i , ( i + 1 ) ) ) ; else modifiedClassName . append ( JasperMangler . mangleChar ( className . charAt ( i ) ) ) ; } return modifiedClassName . toString ( ) ; } private static final String mangleChar ( char ch ) { } private void init ( ) { } private void updateVersionPaths ( ) { } public void nextVersion ( ) { } private String jspFile ; private String jspFilePath = null ; private int version ; private String workDir ; private String docBase ; private String pkgDir ; private String baseClassN ; private String classDir ; private String javaFileName ; private String classFileName ; }

Fix:
if ( ( ( className . length ( ) ) > 0 ) && ( Character . isDigit ( className . charAt ( 0 ) ) ) ) {
Buggy code:
public class FractionTest extends TestCase { private static final int SKIP = 500 ; public FractionTest ( String name ) { } public void testConstants ( ) { } public void testFactory_int_int ( ) { } public void testFactory_int_int_int ( ) { } public void testReducedFactory_int_int ( ) { } public void testFactory_double ( ) { } public void testFactory_String ( ) { } public void testFactory_String_double ( ) { } public void testFactory_String_proper ( ) { } public void testFactory_String_improper ( ) { } public void testGets ( ) { } public void testConversions ( ) { } public void testReduce ( ) { } public void testInvert ( ) { } public void testNegate ( ) { } public void testAbs ( ) { } public void testPow ( ) { } public void testAdd ( ) { } public void testSubtract ( ) { } public void testMultiply ( ) { } public void testDivide ( ) { } public void testEquals ( ) { Fraction f1 = null ; Fraction f2 = null ; f1 = Fraction . getFraction ( 3 , 5 ) ; assertEquals ( false , f1 . equals ( null ) ) ; assertEquals ( false , f1 . equals ( new Object ( ) ) ) ; <START_BUG> assertEquals ( false , f1 . equals ( new Integer ( 6 ) ) ) ; <END_BUG> f1 = Fraction . getFraction ( 3 , 5 ) ; f2 = Fraction . getFraction ( 2 , 5 ) ; assertEquals ( false , f1 . equals ( f2 ) ) ; assertEquals ( true , f1 . equals ( f1 ) ) ; assertEquals ( true , f2 . equals ( f2 ) ) ; f2 = Fraction . getFraction ( 3 , 5 ) ; assertEquals ( true , f1 . equals ( f2 ) ) ; f2 = Fraction . getFraction ( 6 , 10 ) ; assertEquals ( false , f1 . equals ( f2 ) ) ; } public void testHashCode ( ) { } public void testCompareTo ( ) { } public void testToString ( ) { } public void testToProperString ( ) { } }

Fix:
assertEquals ( false , f1 . equals ( Integer . valueOf ( 6 ) ) ) ;
Buggy code:
public class DoubleLiteral extends NumberLiteral { double value ; public DoubleLiteral ( char [ ] token , int s , int e ) { } public void computeConstant ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public TypeBinding literalType ( BlockScope scope ) { <START_BUG> return DoubleBinding ; <END_BUG> } public void traverse ( ASTVisitor visitor , BlockScope blockScope ) { } }

Fix:
return TypeBinding . DOUBLE ;
Buggy code:
public class ThemeDescriptor implements IThemeDescriptor { public static final String ATT_ID = "id" ; private static final String ATT_NAME = "name" ; private Collection colors = new HashSet ( ) ; private String description ; private Collection fonts = new HashSet ( ) ; private String id ; private String name ; private Map dataMap = new HashMap ( ) ; public ThemeDescriptor ( String id ) { } void add ( ColorDefinition definition ) { if ( colors . contains ( definition ) ) { <START_BUG> return ; <END_BUG> } colors . add ( definition ) ; } void add ( FontDefinition definition ) { } void setData ( String key , Object data ) { } public ColorDefinition [ ] getColors ( ) { } public String getDescription ( ) { } public FontDefinition [ ] getFonts ( ) { } public String getId ( ) { } public String getName ( ) { } void extractName ( IConfigurationElement configElement ) { } void setDescription ( String description ) { } public Map getData ( ) { } }

Fix:
colors . remove ( definition ) ;
Buggy code:
public class QueryPCPathsFromToAction extends QueryPCAction { private String fromSymbol ; private String toSymbol ; public QueryPCPathsFromToAction ( ChisioMain main , QueryLocation qLoc ) { } public QueryPCPathsFromToAction ( ChisioMain main , String fromSymbol , String toSymbol , QueryLocation qLoc ) { } public void run ( ) { } @ Override protected Model doQuery ( ) throws CPathException { } @ Override protected Set < BioPAXElement > doFileQuery ( Model model ) { List < String > sourceSym = options . getConvertedSourceList ( ) ; Set < BioPAXElement > source = findRelatedReferences ( model , sourceSym ) ; <START_BUG> List < String > targSym = options . getConvertedSourceList ( ) ; <END_BUG> Set < BioPAXElement > target = findRelatedReferences ( model , targSym ) ; return QueryExecuter . runPathsFromTo ( source , target , model , ( options . getLimitType ( ) ? LimitType . NORMAL : LimitType . SHORTEST_PLUS_K ) , options . getLengthLimit ( ) ) ; } @ Override protected Collection < GraphObject > doSIFQuery ( BasicSIFGraph graph ) throws CPathException { } @ Override protected AbstractQueryParamDialog getDialog ( ) { } @ Override protected boolean canQuery ( ) { } @ Override protected String getNewPathwayName ( ) { } }

Fix:
List < String > targSym = options . getConvertedTargetList ( ) ;
Buggy code:
public class UnderlineFormatAction extends CheckBoxAction implements ContainerListener , Observer { public UnderlineFormatAction ( FrameMediator frameMediator ) { } public void update ( Observable arg0 , Object arg1 ) { } public void actionPerformed ( ActionEvent evt ) { } public void componentAdded ( ContainerEvent e ) { <START_BUG> log . debug ( "Re-registering<seq2seq4repair_space>as<seq2seq4repair_space>observer<seq2seq4repair_space>on<seq2seq4repair_space>editor<seq2seq4repair_space>controller" ) ; <END_BUG> ( ( org . columba . mail . gui . composer . ComposerController ) ( getFrameMediator ( ) ) ) . getEditorController ( ) . addObserver ( this ) ; } public void componentRemoved ( ContainerEvent e ) { } }

Fix:
log . info ( "Re-registering<seq2seq4repair_space>as<seq2seq4repair_space>observer<seq2seq4repair_space>on<seq2seq4repair_space>editor<seq2seq4repair_space>controller" ) ;
Buggy code:
public class JSR223PostProcessor extends JSR223TestElement implements Cloneable , PostProcessor , TestBean { private static final Logger log = LoggingManager . getLoggerForClass ( ) ; private static final long serialVersionUID = 232L ; public void process ( ) { try { ScriptEngine scriptEngine = getScriptEngine ( ) ; <START_BUG> processFileOrScript ( scriptEngine ) ; <END_BUG> } catch ( ScriptException e ) { JSR223PostProcessor . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } catch ( IOException e ) { JSR223PostProcessor . log . warn ( "Problem<seq2seq4repair_space>in<seq2seq4repair_space>JSR223<seq2seq4repair_space>script<seq2seq4repair_space>" , e ) ; } } }

Fix:
processFileOrScript ( scriptEngine , null ) ;
Buggy code:
public class Name { private final String value ; public Name ( final String name ) { } protected void doValidateName ( final String name ) { Preconditions . checkNotNull ( name , "name<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; Preconditions . checkArgument ( ( ! ( name . trim ( ) . isEmpty ( ) ) ) , "name<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>empty" ) ; <START_BUG> Preconditions . checkArgument ( NameCharacterHelper . hasNoExplicitIllegal ( name ) , ( ( ( "Invalid<seq2seq4repair_space>name:<seq2seq4repair_space>'" + name ) + "'.<seq2seq4repair_space>Cannot<seq2seq4repair_space>contain<seq2seq4repair_space>" ) + ( Arrays . toString ( EXIPLICITLY_ILLEGAL_CHARACTERS ) ) ) ) ; <END_BUG> checkValidName ( name ) ; } protected boolean checkValidName ( final String value ) { } @ Override public boolean equals ( final Object o ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { } public static Name from ( final String name ) { } }

Fix:
Preconditions . checkArgument ( NameCharacterHelper . hasNoExplicitIllegal ( name ) , ( ( ( "Invalid<seq2seq4repair_space>name:<seq2seq4repair_space>'" + name ) + "'.<seq2seq4repair_space>Cannot<seq2seq4repair_space>contain<seq2seq4repair_space>" ) + ( Arrays . toString ( NameCharacterHelper . getExplicitlyIllegalCharacters ( ) ) ) ) ) ;