nus-yam/ex-repair huggingface dataset:
Buggy code:
public class CmdClean implements UltimateCommand { @ Override public String getName ( ) { } @ Override public String getPermission ( ) { } @ Override public List < String > getAliases ( ) { } @ Override public void run ( final CommandSender cs , String label , String [ ] args ) { if ( ! ( r . perm ( cs , "uc.clean" , false , true ) ) ) { return ; } StringBuilder s = new StringBuilder ( "" ) ; for ( World w : Bukkit . getWorlds ( ) ) { if ( ( r . checkArgs ( args , 0 ) ) && ( ! ( w . getName ( ) . equalsIgnoreCase ( args [ 0 ] ) ) ) ) { continue ; } Integer c = 0 ; for ( Chunk chunk : w . getLoadedChunks ( ) ) { try { chunk . unload ( true , true ) ; } catch ( Exception ex ) { r . log ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>unload<seq2seq4repair_space>chunk:<seq2seq4repair_space>" + ( chunk . getX ( ) ) ) + "<seq2seq4repair_space>" ) + ( chunk . getZ ( ) ) ) ) ; return ; } c ++ ; } c = c - ( w . getLoadedChunks ( ) . length ) ; Integer e = 0 ; Integer d = 0 ; for ( Entity en : w . getEntities ( ) ) { if ( en instanceof Monster ) { <START_BUG> if ( ( en . getTicksLived ( ) ) > 200 ) { <END_BUG> en . playEffect ( DEATH ) ; en . remove ( ) ; e ++ ; } } if ( en instanceof Item ) { Item item = ( ( Item ) ( en ) ) ; if ( ( item . getTicksLived ( ) ) > 200 ) { if ( ! ( item . isValid ( ) ) ) { en . remove ( ) ; } d ++ ; } } } s . append ( r . mes ( "cleanWorld" , "%World" , w . getName ( ) , "%Chunks" , c , "%Entities" , e , "%Drops" , d ) ) ; } cs . sendMessage ( s . toString ( ) ) ; } @ Override public List < String > onTabComplete ( CommandSender cs , Command cmd , String alias , String [ ] args , String curs , Integer curn ) { } }

Fix:
if ( ( ( en . getTicksLived ( ) ) > 200 ) && ( ( en . getCustomName ( ) ) == null ) ) {
Buggy code:
public abstract class AbstractToSaxWriterVisitor { protected XMLStreamWriter writer ; public AbstractToSaxWriterVisitor ( XMLStreamWriter writer ) { } protected void writeElement ( String tag , Order order ) throws XMLStreamException { } protected void writeElement ( String tag , Resource resource ) throws XMLStreamException { } private void writeTimedStates ( Resource resource ) throws XMLStreamException { List < StrolchTimedState < IValue < ? > > > timedStates = resource . getTimedStates ( ) ; for ( StrolchTimedState < IValue < ? > > timedState : timedStates ) { ITimeVariable < IValue < ? > > timeEvolution = timedState . getTimeEvolution ( ) ; SortedSet < ITimeValue < IValue < ? > > > values = timeEvolution . getValues ( ) ; <START_BUG> writeStartStrolchElement ( TIMED_STATE , ( ! ( values . isEmpty ( ) ) ) , timedState ) ; <END_BUG> for ( ITimeValue < IValue < ? > > timeValue : values ) { this . writer . writeEmptyElement ( VALUE ) ; this . writer . writeAttribute ( TIME , timeValue . getTime ( ) . toString ( ) ) ; this . writer . writeAttribute ( VALUE , timeValue . getValue ( ) . getValueAsString ( ) ) ; } if ( ! ( values . isEmpty ( ) ) ) this . writer . writeEndElement ( ) ; } } protected void writeElement ( String tag , boolean empty , GroupedParameterizedElement element ) throws XMLStreamException { } protected void writeStartStrolchElement ( String tag , boolean empty , StrolchElement element ) throws XMLStreamException { } protected void writeParameterBags ( GroupedParameterizedElement element ) throws XMLStreamException { } protected void writeParameters ( ParameterizedElement element ) throws XMLStreamException { } }

Fix:
writeStartStrolchElement ( TIMED_STATE , values . isEmpty ( ) , timedState ) ;
Buggy code:
public class InputLexerSource extends LexerSource { public InputLexerSource ( InputStream input ) throws IOException { } @ Override public String getPath ( ) { } @ Override public String getName ( ) { } @ Override public String toString ( ) { <START_BUG> return getPath ( ) ; <END_BUG> } }

Fix:
return String . valueOf ( getPath ( ) ) ;
Buggy code:
public class JobView extends ViewPart implements IViewPart { NewProgressViewer viewer ; Action cancelAction ; Action clearAllAction ; public void createPartControl ( Composite parent ) { } public void setFocus ( ) { } protected void initContentProvider ( ) { <START_BUG> IContentProvider provider = new ProgressTreeContentProvider ( viewer ) ; <END_BUG> viewer . setContentProvider ( provider ) ; viewer . setInput ( provider ) ; } private void initContextMenu ( ) { } private void initPulldownMenu ( ) { } private void initToolBar ( ) { } private IStructuredSelection getSelection ( ) { } JobInfo getSelectedInfo ( ) { } private void createCancelAction ( ) { } private void createClearAllAction ( ) { } }

Fix:
IContentProvider provider = new ProgressTreeContentProvider ( viewer , true ) ;
Buggy code:
public abstract class CharTokenizer extends Tokenizer { public CharTokenizer ( Version matchVersion , Reader input ) { } public CharTokenizer ( Version matchVersion , AttributeSource source , Reader input ) { } public CharTokenizer ( Version matchVersion , AttributeFactory factory , Reader input ) { } @ Deprecated public CharTokenizer ( Reader input ) { } @ Deprecated public CharTokenizer ( AttributeSource source , Reader input ) { } @ Deprecated public CharTokenizer ( AttributeFactory factory , Reader input ) { } private int offset = 0 ; private int bufferIndex = 0 ; private int dataLen = 0 ; private int finalOffset = 0 ; private static final int MAX_WORD_LEN = 255 ; private static final int IO_BUFFER_SIZE = 4096 ; private final CharTermAttribute termAtt = addAttribute ( CharTermAttribute . class ) ; private final OffsetAttribute offsetAtt = addAttribute ( OffsetAttribute . class ) ; private final CharacterUtils charUtils ; private final CharacterBuffer ioBuffer = CharacterUtils . newCharacterBuffer ( CharTokenizer . IO_BUFFER_SIZE ) ; @ Deprecated private final boolean useOldAPI ; @ Deprecated private static final VirtualMethod < CharTokenizer > isTokenCharMethod = new VirtualMethod < CharTokenizer > ( CharTokenizer . class , "isTokenChar" , char . class ) ; @ Deprecated private static final VirtualMethod < CharTokenizer > normalizeMethod = new VirtualMethod < CharTokenizer > ( CharTokenizer . class , "normalize" , char . class ) ; @ Deprecated protected boolean isTokenChar ( char c ) { } @ Deprecated protected char normalize ( char c ) { } protected boolean isTokenChar ( int c ) { <START_BUG> throw new UnsupportedOperationException ( "since<seq2seq4repair_space>LUCENE_3_1<seq2seq4repair_space>subclasses<seq2seq4repair_space>of<seq2seq4repair_space>CharTokenizer<seq2seq4repair_space>must<seq2seq4repair_space>implement<seq2seq4repair_space>isTokenChar(int)" ) ; <END_BUG> } protected int normalize ( int c ) { } @ Override public final boolean incrementToken ( ) throws IOException { } @ Deprecated private boolean incrementTokenOld ( ) throws IOException { } @ Override public final void end ( ) { } @ Override public void reset ( Reader input ) throws IOException { } @ Deprecated private boolean useOldAPI ( Version matchVersion ) { } }

Fix:
throw new UnsupportedOperationException ( "since<seq2seq4repair_space>LUCENE_31<seq2seq4repair_space>subclasses<seq2seq4repair_space>of<seq2seq4repair_space>CharTokenizer<seq2seq4repair_space>must<seq2seq4repair_space>implement<seq2seq4repair_space>isTokenChar(int)" ) ;
Buggy code:
public class PackageFragmentRoot extends Openable implements IPackageFragmentRoot { protected IResource fResource ; protected PackageFragmentRoot ( IResource resource , IJavaProject project ) { } protected PackageFragmentRoot ( IResource resource , IJavaProject project , String path ) { } public void attachSource ( IPath zipPath , IPath rootPath , IProgressMonitor monitor ) throws JavaModelException { } protected boolean computeChildren ( OpenableElementInfo info ) throws JavaModelException { } protected void computeFolderChildren ( IContainer folder , String prefix , Vector vChildren ) throws JavaModelException { } protected OpenableElementInfo createElementInfo ( ) { } public IPackageFragment createPackageFragment ( String name , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected int determineKind ( IResource underlyingResource ) throws JavaModelException { <START_BUG> IClasspathEntry [ ] entries = getJavaProject ( ) . getExpandedClasspath ( true ) ; <END_BUG> for ( int i = 0 ; i < ( entries . length ) ; i ++ ) { IClasspathEntry entry = entries [ i ] ; if ( entry . getPath ( ) . equals ( underlyingResource . getFullPath ( ) ) ) { return entry . getContentKind ( ) ; } } return IPackageFragmentRoot . K_SOURCE ; } public boolean equals ( Object o ) { } public boolean exists ( ) { } public boolean exists0 ( ) { } protected boolean generateInfos ( OpenableElementInfo info , IProgressMonitor pm , Hashtable newElements , IResource underlyingResource ) throws JavaModelException { } protected char getHandleMementoDelimiter ( ) { } public int getKind ( ) throws JavaModelException { } public Object [ ] getNonJavaResources ( ) throws JavaModelException { } public IPackageFragment getPackageFragment ( String packageName ) { } protected String getPackageName ( IFolder folder ) throws JavaModelException { } public IPath getPath ( ) { } public IPath getSourceAttachmentPath ( ) throws JavaModelException { } public IPath getSourceAttachmentRootPath ( ) throws JavaModelException { } public IResource getUnderlyingResource ( ) throws JavaModelException { } public int hashCode ( ) { } public boolean isArchive ( ) { } public boolean isExternal ( ) { } public void refreshChildren ( ) { } public void resetNonJavaResources ( ) throws JavaModelException { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { } }

Fix:
IClasspathEntry [ ] entries = ( ( JavaProject ) ( getJavaProject ( ) ) ) . getExpandedClasspath ( true ) ;
Buggy code:
public class AccountManager implements Constants { public static void initTables ( ) { if ( ! ( Database . tableExists ( ACCOUNTS ) ) ) { Map < String , String > columns = new LinkedHashMap < String , String > ( ) ; columns . put ( USERNAME , STRING ) ; columns . put ( PASSWORD , STRING ) ; columns . put ( IS_ADMIN , BOOLEAN ) ; Database . createTable ( ACCOUNTS , columns ) ; } if ( ! ( Database . tableExists ( FRIENDS ) ) ) { Map < String , String > columns = new LinkedHashMap < String , String > ( ) ; columns . put ( USERNAME , STRING ) ; columns . put ( FRIEND , STRING ) ; columns . put ( STATUS , STRING ) ; Database . createTable ( FRIENDS , columns ) ; } if ( ! ( Database . tableExists ( MESSAGES ) ) ) { Map < String , String > columns = new LinkedHashMap < String , String > ( ) ; columns . put ( SENDER , STRING ) ; columns . put ( RECIPIENT , STRING ) ; columns . put ( CONTENT , STRING ) ; columns . put ( TYPE , STRING ) ; columns . put ( DATE , STRING ) ; <START_BUG> columns . put ( READ , BOOLEAN ) ; <END_BUG> Database . createTable ( MESSAGES , columns ) ; } } public static Account createAccount ( String username , String password ) throws NoSuchAlgorithmException { } public static Account getAccount ( String username ) { } public static void removeAccount ( String username ) { } public static boolean accountExists ( String username ) { } public static boolean passwordMatches ( String username , String password ) throws NoSuchAlgorithmException { } public static List < Account > getAllUsers ( ) { } }

Fix:
columns . put ( SEEN , BOOLEAN ) ;
Buggy code:
public class EchoXML extends XMLFragment { private static final DOMElementWriter writer = new DOMElementWriter ( ) ; private File file ; private boolean append ; public void setFile ( File f ) { } public void setAppend ( boolean b ) { } public void execute ( ) { try { OutputStream os = null ; if ( ( file ) != null ) { <START_BUG> os = new FileOutputStream ( file , append ) ; <END_BUG> } else { os = new LogOutputStream ( this , Project . MSG_INFO ) ; } Node n = getFragment ( ) . getFirstChild ( ) ; if ( n == null ) { throw new BuildException ( "No<seq2seq4repair_space>nested<seq2seq4repair_space>XML<seq2seq4repair_space>specified" ) ; } EchoXML . writer . write ( ( ( Element ) ( n ) ) , os ) ; } catch ( Exception e ) { throw new BuildException ( e ) ; } } }

Fix:
os = new FileOutputStream ( file . getAbsolutePath ( ) , append ) ;
Buggy code:
public final class TestFragment extends Fragment { private static final String KEY_CONTENT = "TestFragment:Content" ; private static int index = 0 ; public static TestFragment newInstance ( String content ) { } private String mContent = "???" ; @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { TextView text = new TextView ( getActivity ( ) ) ; text . setGravity ( CENTER ) ; text . setText ( mContent ) ; text . setTextSize ( ( 20 * ( getResources ( ) . getDisplayMetrics ( ) . density ) ) ) ; text . setPadding ( 20 , 20 , 20 , 20 ) ; LinearLayout layout = new LinearLayout ( getActivity ( ) ) ; <START_BUG> layout . setLayoutParams ( new LinearLayout . LayoutParams ( LayoutParams . FILL_PARENT , LayoutParams . FILL_PARENT ) ) ; <END_BUG> layout . setGravity ( CENTER ) ; layout . addView ( text ) ; if ( ( ( TestFragment . index ) % 2 ) == 0 ) { layout . setBackgroundColor ( - 16711936 ) ; } else { layout . setBackgroundColor ( - 1 ) ; } ( TestFragment . index ) ++ ; return layout ; } @ Override public void onSaveInstanceState ( Bundle outState ) { } }

Fix:
layout . setLayoutParams ( new LinearLayout . LayoutParams ( LayoutParams . MATCH_PARENT , LayoutParams . MATCH_PARENT ) ) ;
Buggy code:
public class Shoot extends Command { private int i ; public Shoot ( ) { } protected void initialize ( ) { } protected void execute ( ) { shooter . retractPin ( ) ; <START_BUG> shooter . SetIsCocked ( false ) ; <END_BUG> ( i ) ++ ; } protected boolean isFinished ( ) { } protected void end ( ) { } protected void interrupted ( ) { } }

Fix:
shooter . setIsCocked ( false ) ;
Buggy code:
public class RedisSubscribeDrivenSource extends AbstractSource implements EventDrivenSource , Configurable { private Logger logger = LoggerFactory . getLogger ( RedisSubscribeDrivenSource . class ) ; private ChannelProcessor channelProcessor ; private Jedis jedis ; private String redisHost ; private int redisPort ; private String redisChannel ; private int redisTimeout ; private String redisPassword ; private int redisDatabase ; private String messageCharset ; private boolean runFlag ; @ Override public void configure ( Context context ) { } @ Override public synchronized void start ( ) { super . start ( ) ; channelProcessor = getChannelProcessor ( ) ; jedis = new Jedis ( redisHost , redisPort , redisTimeout ) ; <START_BUG> if ( ( redisPassword ) != "" ) { <END_BUG> jedis . auth ( redisPassword ) ; } if ( ( redisDatabase ) != 0 ) { jedis . select ( redisDatabase ) ; } logger . info ( ( ( ( ( ( ( ( ( "Redis<seq2seq4repair_space>Connected.<seq2seq4repair_space>(host:<seq2seq4repair_space>" + ( redisHost ) ) + ",<seq2seq4repair_space>port:<seq2seq4repair_space>" ) + ( String . valueOf ( redisPort ) ) ) + ",<seq2seq4repair_space>timeout:<seq2seq4repair_space>" ) + ( String . valueOf ( redisTimeout ) ) ) + ",<seq2seq4repair_space>database:<seq2seq4repair_space>" ) + ( String . valueOf ( redisDatabase ) ) ) + ")" ) ) ; runFlag = true ; new Thread ( new RedisSubscribeDrivenSource . SubscribeManager ( ) ) . start ( ) ; } @ Override public synchronized void stop ( ) { } private class SubscribeManager implements Runnable { private Thread subscribeRunner ; private JedisPubSub jedisPubSub ; @ Override public void run ( ) { } } private class SubscribeRunner implements Runnable { private JedisPubSub jedisPubSub ; public SubscribeRunner ( JedisPubSub jedisPubSub ) { } @ Override public void run ( ) { } } private class JedisSubscribeListener extends JedisPubSub { @ Override public void onMessage ( String channel , String message ) { } @ Override public void onPMessage ( String pattern , String channel , String message ) { } @ Override public void onSubscribe ( String channel , int subscribedChannels ) { } @ Override public void onUnsubscribe ( String channel , int subscribedChannels ) { } @ Override public void onPUnsubscribe ( String pattern , int subscribedChannels ) { } @ Override public void onPSubscribe ( String pattern , int subscribedChannels ) { } } }

Fix:
if ( ! ( "" . equals ( redisPassword ) ) ) {
Buggy code:
public class PartSite implements IWorkbenchPartSite { private IWorkbenchPartReference partReference ; private IWorkbenchPart part ; private IWorkbenchPage page ; private PartPane pane ; private IConfigurationElement configElement ; private String extensionID ; private String pluginID ; private String extensionName ; private ISelectionProvider selectionProvider ; private SubActionBars actionBars ; private KeyBindingService keyBindingService ; private ArrayList menuExtenders ; public PartSite ( IWorkbenchPartReference ref , IWorkbenchPart part , IWorkbenchPage page ) { } public void dispose ( ) { } public IActionBars getActionBars ( ) { } public IConfigurationElement getConfigurationElement ( ) { } public String getId ( ) { } public IWorkbenchPage getPage ( ) { } public PartPane getPane ( ) { } public IWorkbenchPart getPart ( ) { } public IWorkbenchPartReference getPartReference ( ) { } public String getPluginId ( ) { } public String getRegisteredName ( ) { } public ISelectionProvider getSelectionProvider ( ) { } public Shell getShell ( ) { } public IWorkbenchWindow getWorkbenchWindow ( ) { } public void registerContextMenu ( String menuID , MenuManager menuMgr , ISelectionProvider selProvider ) { } public void registerContextMenu ( MenuManager menuMgr , ISelectionProvider selProvider ) { } public String [ ] getContextMenuIds ( ) { } public void setActionBars ( SubActionBars bars ) { } public void setConfigurationElement ( IConfigurationElement configElement ) { } public void setPane ( PartPane pane ) { } public void setPart ( IWorkbenchPart newPart ) { } public void setSelectionProvider ( ISelectionProvider provider ) { } public IKeyBindingService getKeyBindingService ( ) { if ( ( keyBindingService ) == null ) { <START_BUG> keyBindingService = new KeyBindingService ( getId ( ) ) ; <END_BUG> if ( ( this ) instanceof EditorSite ) { EditorActionBuilder . ExternalContributor contributor = ( ( EditorActionBuilder . ExternalContributor ) ( ( ( EditorSite ) ( this ) ) . getExtensionActionBarContributor ( ) ) ) ; if ( contributor != null ) { ActionDescriptor [ ] actionDescriptors = contributor . getExtendedActions ( ) ; if ( actionDescriptors != null ) { for ( int i = 0 ; i < ( actionDescriptors . length ) ; i ++ ) { ActionDescriptor actionDescriptor = actionDescriptors [ i ] ; if ( actionDescriptor != null ) { IAction action = actionDescriptors [ i ] . getAction ( ) ; if ( ( action != null ) && ( ( action . getActionDefinitionId ( ) ) != null ) ) keyBindingService . registerAction ( action ) ; } } } } } } return keyBindingService ; } protected String getInitialScopeId ( ) { } public void schedule ( Job job , long delay ) { } public Object getAdapter ( Class adapter ) { } private IWorkbenchSiteProgressService getSiteProgressService ( ) { } }

Fix:
keyBindingService = new KeyBindingService ( this ) ;
Buggy code:
public class TestSolrEntityProcessorEndToEnd extends AbstractDataImportHandlerTestCase { private static Logger LOG = LoggerFactory . getLogger ( TestSolrEntityProcessorEndToEnd . class ) ; private static final String SOLR_CONFIG = "dataimport-solrconfig.xml" ; private static final String SOLR_SCHEMA = "dataimport-schema.xml" ; private static final String SOURCE_CONF_DIR = ( ( ( ( ( ( "dih" + ( File . separator ) ) + "solr" ) + ( File . separator ) ) + "collection1" ) + ( File . separator ) ) + "conf" ) + ( File . separator ) ; private static final String ROOT_DIR = ( ( "dih" + ( File . separator ) ) + "solr" ) + ( File . separator ) ; private static final String DEAD_SOLR_SERVER = "http:////[ff01::114]:33332//solr" ; private static final List < Map < String , Object > > DB_DOCS = new ArrayList < Map < String , Object > > ( ) ; private static final List < Map < String , Object > > SOLR_DOCS = new ArrayList < Map < String , Object > > ( ) ; private TestSolrEntityProcessorEndToEnd . SolrInstance instance = null ; private JettySolrRunner jetty ; private String getDihConfigTagsInnerEntity ( ) { } private String generateDIHConfig ( String options , boolean useDeadServer ) { } private String getSourceUrl ( ) { <START_BUG> return ( ( ( "http" + ( isSSLMode ( ) ? "s" : "" ) ) + ":////127.0.0.1:" ) + ( jetty . getLocalPort ( ) ) ) + "//solr" ; <END_BUG> } static String savedFactory ; @ BeforeClass public static void beforeClass ( ) { } @ AfterClass public static void afterClass ( ) { } @ Override @ Before public void setUp ( ) throws Exception { } @ Override @ After public void tearDown ( ) throws Exception { } public void testFullImport ( ) { } public void testFullImportFqParam ( ) { } public void testFullImportFieldsParam ( ) { } public void testFullImportInnerEntity ( ) { } public void testFullImportWrongSolrUrl ( ) { } public void testFullImportBadConfig ( ) { } private static List < Map < String , Object > > generateSolrDocuments ( int num ) { } private void addDocumentsToSolr ( List < Map < String , Object > > docs ) throws IOException , SolrServerException { } private static class SolrInstance { File homeDir ; File confDir ; public String getHomeDir ( ) { } public String getSchemaFile ( ) { } public String getDataDir ( ) { } public String getSolrConfigFile ( ) { } public String getSolrXmlFile ( ) { } public void setUp ( ) throws Exception { } public void tearDown ( ) throws Exception { } } private JettySolrRunner createJetty ( TestSolrEntityProcessorEndToEnd . SolrInstance instance ) throws Exception { } }

Fix:
return buildUrl ( jetty . getLocalPort ( ) , "//solr" ) ;
Buggy code:
public class PlotServerProvider { public static final String PLOT_SERVER_NAME = "plot_server" ; private static final Logger logger = LoggerFactory . getLogger ( PlotServerProvider . class ) ; static PlotServer plotServer ; public static synchronized PlotServer getExistingPlotServer ( ) { } public static synchronized PlotServer getPlotServer ( ) { if ( ( PlotServerProvider . plotServer ) == null ) { PlotServerProvider . logger . info ( "PlotServer<seq2seq4repair_space>instance<seq2seq4repair_space>not<seq2seq4repair_space>set<seq2seq4repair_space>-<seq2seq4repair_space>using<seq2seq4repair_space>local<seq2seq4repair_space>created<seq2seq4repair_space>PlotServer<seq2seq4repair_space>instead" ) ; try { PlotServerProvider . plotServer = new RMIPlotServer ( ) ; } catch ( Exception e ) { PlotServerProvider . logger . info ( "RMIPlotserver<seq2seq4repair_space>can't<seq2seq4repair_space>be<seq2seq4repair_space>created,<seq2seq4repair_space>using<seq2seq4repair_space>SimplePlotServer<seq2seq4repair_space>instead" , e ) ; PlotServerProvider . plotServer = new SimplePlotServer ( ) ; } try { IAnalysisRpcHandler dispatcher = new uk . ac . diamond . scisoft . analysis . rpc . AnalysisRpcGenericInstanceDispatcher ( ISDAPlotter . class , SDAPlotterImpl . getDefaultInstance ( ) ) ; AnalysisRpcServerProvider . getInstance ( ) . addHandler ( SDAPlotter . class . getSimpleName ( ) , dispatcher ) ; PlotServiceProvider . setPlotService ( PlotServerProvider . plotServer ) ; } catch ( Exception e ) { <START_BUG> PlotServerProvider . logger . error ( "Error<seq2seq4repair_space>starting<seq2seq4repair_space>Analysis<seq2seq4repair_space>RCP<seq2seq4repair_space>wrapper" , e ) ; <END_BUG> PlotServerProvider . plotServer = null ; } } return PlotServerProvider . plotServer ; } public static void setPlotServer ( PlotServer plotServer ) { } }

Fix:
PlotServerProvider . logger . error ( "Error<seq2seq4repair_space>starting<seq2seq4repair_space>Analysis<seq2seq4repair_space>RPC<seq2seq4repair_space>wrapper" , e ) ;
Buggy code:
public class XML11NSDocumentScannerImpl extends XML11DocumentScannerImpl { protected boolean fBindNamespaces ; protected boolean fPerformValidation ; private XMLDTDValidatorFilter fDTDValidator ; private boolean fSawSpace ; public void setDTDValidator ( XMLDTDValidatorFilter validator ) { } protected boolean scanStartElement ( ) throws IOException , XNIException { } protected void scanStartElementName ( ) throws IOException , XNIException { } protected boolean scanStartElementAfterName ( ) throws IOException , XNIException { } protected void scanAttribute ( XMLAttributesImpl attributes ) throws IOException , XNIException { } protected int scanEndElement ( ) throws IOException , XNIException { } public void reset ( XMLComponentManager componentManager ) throws XMLConfigurationException { } protected Dispatcher createContentDispatcher ( ) { } protected final class NS11ContentDispatcher extends ContentDispatcher { protected boolean scanRootElementHook ( ) throws IOException , XNIException { <START_BUG> if ( ( ( ( fExternalSubsetResolver ) != null ) && ( ! ( fSeenDoctypeDecl ) ) ) && ( ( fValidation ) || ( fLoadExternalDTD ) ) ) { <END_BUG> scanStartElementName ( ) ; resolveExternalSubsetAndRead ( ) ; reconfigurePipeline ( ) ; if ( scanStartElementAfterName ( ) ) { setScannerState ( SCANNER_STATE_TRAILING_MISC ) ; setDispatcher ( fTrailingMiscDispatcher ) ; return true ; } } else { reconfigurePipeline ( ) ; if ( scanStartElement ( ) ) { setScannerState ( SCANNER_STATE_TRAILING_MISC ) ; setDispatcher ( fTrailingMiscDispatcher ) ; return true ; } } return false ; } private void reconfigurePipeline ( ) { } } }

Fix:
if ( ( ( ( ( fExternalSubsetResolver ) != null ) && ( ! ( fSeenDoctypeDecl ) ) ) && ( ! ( fDisallowDoctype ) ) ) && ( ( fValidation ) || ( fLoadExternalDTD ) ) ) {
Buggy code:
public class ReloadInterceptor extends BaseInterceptor { boolean fullReload = true ; public ReloadInterceptor ( ) { } public void setFullReload ( boolean full ) { } public void contextInit ( Context context ) throws TomcatException { } public int contextMap ( Request request ) { Context ctx = request . getContext ( ) ; if ( ctx == null ) return 0 ; if ( ! ( ctx . getReloadable ( ) ) ) return 0 ; if ( ! ( ctx . shouldReload ( ) ) ) return 0 ; try { ContextManager cm = ctx . getContextManager ( ) ; if ( fullReload ) { Enumeration e ; Context ctx1 = new Context ( ) ; ctx1 . setContextManager ( cm ) ; ctx1 . setPath ( ctx . getPath ( ) ) ; ctx1 . setDocBase ( ctx . getDocBase ( ) ) ; ctx1 . setReloadable ( ctx . getReloadable ( ) ) ; ctx1 . setDebug ( ctx . getDebug ( ) ) ; ctx1 . setHost ( ctx . getHost ( ) ) ; e = ctx . getHostAliases ( ) ; while ( e . hasMoreElements ( ) ) ctx1 . addHostAlias ( ( ( String ) ( e . nextElement ( ) ) ) ) ; cm . removeContext ( ctx ) ; cm . addContext ( ctx1 ) ; cm . initContext ( ctx1 ) ; } else { Enumeration sE = ctx . getServletNames ( ) ; while ( sE . hasMoreElements ( ) ) { try { String sN = ( ( String ) ( sE . nextElement ( ) ) ) ; Handler sw = ctx . getServletByName ( sN ) ; sw . reload ( ) ; } catch ( Exception ex ) { log ( ( "Reload<seq2seq4repair_space>exception:<seq2seq4repair_space>" + ex ) ) ; } } if ( ( debug ) > 0 ) log ( ( "Reloading<seq2seq4repair_space>hooks<seq2seq4repair_space>for<seq2seq4repair_space>context<seq2seq4repair_space>" + ( ctx . toString ( ) ) ) ) ; <START_BUG> BaseInterceptor [ ] cI = cm . getInterceptors ( ctx . getContainer ( ) ) ; <END_BUG> for ( int i = 0 ; i < ( cI . length ) ; i ++ ) { cI [ i ] . reload ( request , ctx ) ; } } } catch ( TomcatException ex ) { log ( ( "Error<seq2seq4repair_space>reloading<seq2seq4repair_space>" + ex ) ) ; } return 0 ; } }

Fix:
BaseInterceptor [ ] cI = ctx . getContainer ( ) . getInterceptors ( ) ;
Buggy code:
final class ExpandedProductResultParser extends ResultParser { private ExpandedProductResultParser ( ) { } public static ExpandedProductParsedResult parse ( Result result ) { } private static String findAIvalue ( int i , String rawText ) { } private static String findValue ( int i , String rawText ) { StringBuffer buf = new StringBuffer ( ) ; String rawTextAux = rawText . substring ( i ) ; for ( int index = 0 ; index < ( rawTextAux . length ( ) ) ; index ++ ) { char c = rawTextAux . charAt ( index ) ; if ( c == '(' ) { if ( "ERROR" . equals ( ExpandedProductResultParser . findAIvalue ( index , rawTextAux ) ) ) { <START_BUG> buf . append ( c ) ; <END_BUG> } else { break ; } } else { buf . append ( c ) ; } } return buf . toString ( ) ; } }

Fix:
buf . append ( '(' ) ;
Buggy code:
class TableTab extends ScrollableTab { Table table1 ; Group tableGroup ; Group itemGroup ; Button checkButton ; Button fullSelectionButton ; Button hideSelectionButton ; Button multipleColumns ; Button moveableColumns ; Button headerVisibleButton ; Button linesVisibleButton ; Button itemForegroundButton ; Button itemBackgroundButton ; Button itemFontButton ; Color itemForegroundColor ; Color itemBackgroundColor ; Image itemForegroundImage ; Image itemBackgroundImage ; Font itemFont ; static String [ ] columnTitles = new String [ ] { ControlExample . getResourceString ( "TableTitle_0" ) , ControlExample . getResourceString ( "TableTitle_1" ) , ControlExample . getResourceString ( "TableTitle_2" ) , ControlExample . getResourceString ( "TableTitle_3" ) } ; static String [ ] [ ] tableData = new String [ ] [ ] { new String [ ] { ControlExample . getResourceString ( "TableLine0_0" ) , ControlExample . getResourceString ( "TableLine0_1" ) , ControlExample . getResourceString ( "TableLine0_2" ) , ControlExample . getResourceString ( "TableLine0_3" ) } , new String [ ] { ControlExample . getResourceString ( "TableLine1_0" ) , ControlExample . getResourceString ( "TableLine1_1" ) , ControlExample . getResourceString ( "TableLine1_2" ) , ControlExample . getResourceString ( "TableLine1_3" ) } , new String [ ] { ControlExample . getResourceString ( "TableLine2_0" ) , ControlExample . getResourceString ( "TableLine2_1" ) , ControlExample . getResourceString ( "TableLine2_2" ) , ControlExample . getResourceString ( "TableLine2_3" ) } } ; TableTab ( ControlExample instance ) { } void createColorGroup ( ) { } void createOtherGroup ( ) { } void createExampleGroup ( ) { } void createExampleWidgets ( ) { } void setItemText ( TableItem item , int i , String node ) { } void createStyleGroup ( ) { } Item [ ] getExampleWidgetItems ( ) { } Control [ ] getExampleWidgets ( ) { } String [ ] getMethodNames ( ) { <START_BUG> return new String [ ] { "ItemCount" , "Selection" , "SelectionIndex" , "SortDirection" , "TopIndex" } ; <END_BUG> } String setMethodName ( String methodRoot ) { } Object [ ] parameterForType ( String typeName , String value , Control control ) { } TableItem findItem ( String value , TableItem [ ] items ) { } String getTabText ( ) { } void resetColorsAndFonts ( ) { } void setItemBackground ( ) { } void setItemForeground ( ) { } void setItemFont ( ) { } void setExampleWidgetFont ( ) { } void packColumns ( ) { } void setColumnsMoveable ( ) { } void setExampleWidgetState ( ) { } void setWidgetHeaderVisible ( ) { } void setWidgetLinesVisible ( ) { } }

Fix:
return new String [ ] { "ColumnOrder" , "ItemCount" , "Selection" , "SelectionIndex" , "SortDirection" , "TopIndex" } ;
Buggy code:
public class FakeLogger implements ILogger { private ArrayList < String > log = new ArrayList < > ( ) ; @ Override <START_BUG> public void addToLog ( String message ) { <END_BUG> log . add ( message ) ; } @ Override public List < String > getLog ( ) { } }

Fix:
public void addToLog ( final String message ) {
Buggy code:
public class NetCommand { protected Task owner ; protected Execute executable ; protected Commandline commandLine ; protected String title ; protected String program ; protected boolean traceCommandLine = false ; protected boolean failOnError ; public NetCommand ( Task owner , String title , String program ) { } public void setTraceCommandLine ( boolean b ) { } public void setFailOnError ( boolean b ) { } public boolean getFailFailOnError ( ) { } protected void logVerbose ( String msg ) { } protected void logError ( String msg ) { } public void addArgument ( String argument ) { } public void addArgument ( String argument1 , String argument2 ) { } protected void prepareExecutor ( ) { } public void runCommand ( ) throws BuildException { int err = - 1 ; try { if ( traceCommandLine ) { owner . log ( commandLine . describeCommand ( ) ) ; } else { logVerbose ( commandLine . describeCommand ( ) ) ; } executable . setCommandline ( commandLine . getCommandline ( ) ) ; err = executable . execute ( ) ; <START_BUG> if ( err != 0 ) { <END_BUG> if ( failOnError ) { throw new BuildException ( ( ( ( title ) + "<seq2seq4repair_space>returned:<seq2seq4repair_space>" ) + err ) , owner . getLocation ( ) ) ; } else { owner . log ( ( ( ( title ) + "<seq2seq4repair_space>Result:<seq2seq4repair_space>" ) + err ) , MSG_ERR ) ; } } } catch ( IOException e ) { throw new BuildException ( ( ( ( title ) + "<seq2seq4repair_space>failed:<seq2seq4repair_space>" ) + e ) , e , owner . getLocation ( ) ) ; } } public int scanOneFileset ( DirectoryScanner scanner , Hashtable filesToBuild , long outputTimestamp ) { } }

Fix:
if ( Execute . isFailure ( err ) ) {
Buggy code:
public class DistanceFunctionTest extends SolrTestCaseJ4 { @ BeforeClass public static void beforeClass ( ) throws Exception { <START_BUG> initCore ( "solrConfig-functionquery.xml" , "schema11.xml" ) ; <END_BUG> } @ Test public void testHaversine ( ) throws Exception { } @ Test public void testVector ( ) throws Exception { } }

Fix:
initCore ( "solrconfig-functionquery.xml" , "schema11.xml" ) ;
Buggy code:
public class ClientServerWarWithContextPathIntegrationTest extends AbstractClientServerSharedClassloadersAndTestClasspathIntegrationTest { private static final int SERVER_HTTP_PORT = PortFactory . findFreePort ( ) ; private static final int SERVER_HTTPS_PORT = PortFactory . findFreePort ( ) ; private static final int TEST_SERVER_HTTP_PORT = PortFactory . findFreePort ( ) ; private static Tomcat tomcat ; private static EchoServer echoServer ; @ BeforeClass public static void startServer ( ) throws Exception { servletContext = "mockserver" ; ClientServerWarWithContextPathIntegrationTest . tomcat = new Tomcat ( ) ; ClientServerWarWithContextPathIntegrationTest . tomcat . setBaseDir ( ( ( ( ( new File ( "." ) . getCanonicalPath ( ) ) + ( File . separatorChar ) ) + "tomcat" ) + ( ( servletContext . length ( ) ) > 0 ? "_" + ( servletContext ) : "" ) ) ) ; ClientServerWarWithContextPathIntegrationTest . tomcat . setPort ( ClientServerWarWithContextPathIntegrationTest . SERVER_HTTP_PORT ) ; <START_BUG> SSLFactory . getInstance ( ) . buildKeyStore ( ) ; <END_BUG> Connector httpsConnector = new Connector ( ) ; httpsConnector . setPort ( ClientServerWarWithContextPathIntegrationTest . SERVER_HTTPS_PORT ) ; httpsConnector . setSecure ( true ) ; httpsConnector . setAttribute ( "keyAlias" , KEY_STORE_CERT_ALIAS ) ; httpsConnector . setAttribute ( "keystorePass" , ConfigurationProperties . javaKeyStorePassword ( ) ) ; httpsConnector . setAttribute ( "keystoreFile" , new File ( ConfigurationProperties . javaKeyStoreFilePath ( ) ) . getAbsoluteFile ( ) ) ; httpsConnector . setAttribute ( "sslProtocol" , "TLS" ) ; httpsConnector . setAttribute ( "clientAuth" , false ) ; httpsConnector . setAttribute ( "SSLEnabled" , true ) ; Service service = ClientServerWarWithContextPathIntegrationTest . tomcat . getService ( ) ; service . addConnector ( httpsConnector ) ; Connector defaultConnector = ClientServerWarWithContextPathIntegrationTest . tomcat . getConnector ( ) ; defaultConnector . setRedirectPort ( ClientServerWarWithContextPathIntegrationTest . SERVER_HTTPS_PORT ) ; Context ctx = ClientServerWarWithContextPathIntegrationTest . tomcat . addContext ( ( "//" + ( servletContext ) ) , new File ( "." ) . getAbsolutePath ( ) ) ; ClientServerWarWithContextPathIntegrationTest . tomcat . addServlet ( ( "//" + ( servletContext ) ) , "mockServerServlet" , new MockServerServlet ( ) ) ; ctx . addServletMapping ( "//*" , "mockServerServlet" ) ; ClientServerWarWithContextPathIntegrationTest . tomcat . start ( ) ; ClientServerWarWithContextPathIntegrationTest . echoServer = new EchoServer ( ClientServerWarWithContextPathIntegrationTest . TEST_SERVER_HTTP_PORT , false ) ; mockServerClient = new org . mockserver . client . server . MockServerClient ( "localhost" , ClientServerWarWithContextPathIntegrationTest . SERVER_HTTP_PORT , servletContext ) ; } @ AfterClass public static void stopServer ( ) throws Exception { } @ Override public int getMockServerPort ( ) { } @ Override public int getMockServerSecurePort ( ) { } @ Override public int getTestServerPort ( ) { } }

Fix:
SSLFactory . getInstance ( ) . buildKeyStore ( true ) ;
Buggy code:
public class Chat { public int chatSize ; public ArrayList < String > lines = new ArrayList < String > ( ) ; public Chat ( int chatSize ) { } public void render ( GUI gui ) { for ( int i = 0 ; i < ( lines . size ( ) ) ; i ++ ) { <START_BUG> gui . font . drawString ( 18 , ( 500 + ( i * 15 ) ) , lines . get ( i ) , new Color ( 1.0F , 1.0F , 1.0F , ( i // 8 ) ) ) ; <END_BUG> } } public void add ( ChatMessage packet ) { } }

Fix:
gui . font . drawString ( 18 , ( 500 + ( i * 15 ) ) , lines . get ( i ) , new Color ( 1.0F , 1.0F , 1.0F , ( 0.1F * i ) ) ) ;
Buggy code:
public class DaemonModel extends Observable { private MerkleDaemon daemon ; private DaemonModel . DaemonStatus daemonStatus ; private enum DaemonStatus { ONLINE , OFFLINE ; } private Merkle tree ; public DaemonModel ( ) { } public void addFileToTree ( File file , boolean recursive ) { } public void removeFileFromTree ( File file ) { } public void startDaemon ( int period ) { <START_BUG> if ( ( ( daemon ) == null ) || ( daemon . isInterrupted ( ) ) ) <END_BUG> return ; daemon = new MerkleDaemon ( tree , period ) ; daemon . start ( ) ; daemonStatus = DaemonModel . DaemonStatus . ONLINE ; notifyChange ( DAEMONSTATUS ) ; } public void stopDaemon ( ) { } public Log getDaemonLog ( ) { } public String getDaemonStatus ( ) { } private void notifyChange ( DaemonNotification type ) { } }

Fix:
if ( ( daemon ) != null )
Buggy code:
public final class MarkdownLine { public final CharArrSubstring src ; public final MarkdownParagraphType type ; public final int spacesAtStart ; public final int spacesAtEnd ; public final int prefixLength ; public final int level ; public final int number ; MarkdownLine ( CharArrSubstring src , MarkdownParser . MarkdownParagraphType type , int spacesAtStart , int spacesAtEnd , int prefixLength , int level , int number ) { } public static MarkdownLine generate ( final CharArrSubstring src ) { } public MarkdownLine rejoin ( MarkdownLine toAppend ) { } public MarkdownParagraph tokenize ( final MarkdownParagraph parent ) { } private boolean isPlainText ( ) { for ( int i = 0 ; i < ( src . length ) ; i ++ ) { switch ( src . arr [ ( i + ( src . start ) ) ] ) { case '*' : case '_' : case '^' : case '`' : case '\\' : case '[' : case '~' : case '#' : return false ; case '//' : if ( ( src . equalAt ( ( i + 1 ) , "u//" ) ) || ( src . equalAt ( ( i + 1 ) , "r//" ) ) ) { return false ; } break ; case 'h' : <START_BUG> if ( src . equalAt ( ( i + 1 ) , "ttp:////" ) ) { <END_BUG> return false ; } break ; case 'w' : if ( src . equalAt ( ( i + 1 ) , "ww." ) ) { return false ; } break ; case 'r' : case 'u' : if ( ( ( src . length ) > ( i + 1 ) ) && ( ( src . arr [ ( ( ( src . start ) + i ) + 1 ) ] ) == '//' ) ) { return false ; } break ; default : } } return true ; } }

Fix:
if ( ( src . equalAt ( ( i + 1 ) , "ttp:////" ) ) || ( src . equalAt ( ( i + 1 ) , "ttps:////" ) ) ) {
Buggy code:
class PickCalPanel extends JPanel { private static final long serialVersionUID = - 6235383197611711852L ; private static final Key [ ] MONTHS = new Key [ ] { Key . January , Key . February , Key . March , Key . April , Key . May , Key . June , Key . July , Key . August , Key . September , Key . October , Key . November , Key . December } ; private static final Key [ ] DAYS = new Key [ ] { Key . Sunday , Key . Monday , Key . Tuesday , Key . Wednesday , Key . Thursday , Key . Friday , Key . Saturday } ; private JComboBox < PickCalBundle . Key > monthComboBox ; private JSpinner yearSpinner ; private JPanel daysPanel ; private JSpinner hourSpinner ; private JSpinner minuteSpinner ; private JSpinner secondSpinner ; private JSpinner ampmSpinner ; private DayButton selectedDayButton ; private final boolean showTimePanel ; public PickCalPanel ( ) { } public PickCalPanel ( boolean showTime ) { } public void setDate ( final LocalDateTime date ) { } public LocalDateTime getDate ( ) { } private Component createMonthYearPanel ( ) { } private Component createDaysPanel ( ) { } private Component createTimeControlPanel ( ) { } private void updateDaysPanel ( LocalDateTime date ) { daysPanel . removeAll ( ) ; int today = date . get ( ChronoField . DAY_OF_MONTH ) ; LocalDateTime first = date . with ( ChronoField . DAY_OF_MONTH , 1 ) ; <START_BUG> int startDay = ( first . get ( ChronoField . DAY_OF_WEEK ) ) - 1 ; <END_BUG> int numDays = Month . of ( date . get ( ChronoField . MONTH_OF_YEAR ) ) . maxLength ( ) ; int rows = 1 ; int startWeek = ( 7 - startDay ) + 1 ; while ( startWeek < numDays ) { rows ++ ; startWeek += 7 ; } daysPanel . setLayout ( new GridLayout ( ( rows + 1 ) , 7 ) ) ; for ( PickCalBundle . Key m : PickCalPanel . DAYS ) { JLabel l = new JLabel ( m . toString ( ) . substring ( 0 , 1 ) ) ; l . setToolTipText ( m . toString ( ) ) ; l . setHorizontalAlignment ( SwingConstants . CENTER ) ; daysPanel . add ( l ) ; } PickCalPanel . DayButtonListener listener = new PickCalPanel . DayButtonListener ( ) ; int day = 1 - startDay ; for ( int y = 0 ; y < rows ; y ++ ) { for ( int x = 0 ; x < 7 ; x ++ ) { if ( ( day > 0 ) && ( day <= numDays ) ) { String dateStr = String . valueOf ( day ) ; DayButton button = new DayButton ( dateStr ) ; button . addActionListener ( listener ) ; if ( today == day ) { selectedDayButton = button ; } button . hilite ( ( today == day ) ) ; daysPanel . add ( button ) ; } else { daysPanel . add ( new DayButton ( ) ) ; } day ++ ; } } invalidate ( ) ; revalidate ( ) ; } class DayButtonListener implements ActionListener { @ Override public void actionPerformed ( ActionEvent ae ) { } } class MonthItemListener implements ItemListener { @ Override public void itemStateChanged ( ItemEvent e ) { } } class YearChangeListener implements ChangeListener { @ Override public void stateChanged ( ChangeEvent e ) { } } }

Fix:
int startDay = first . get ( ChronoField . DAY_OF_WEEK ) ;
Buggy code:
public class LoginActivity extends AppCompatActivity { public static final String VERIFY_FILE_NAME = "has_showed_this_login_window.txt" ; public static String setted_username ; public static String setted_password ; private Button login_button ; private EditText username_box ; private EditText password_box ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_login_activity ) ; username_box = ( ( EditText ) ( findViewById ( login_user ) ) ) ; password_box = ( ( EditText ) ( findViewById ( login_password ) ) ) ; if ( ( ( LoginActivity . setted_username ) != null ) && ( ( LoginActivity . setted_password ) != null ) ) { username_box . setText ( LoginActivity . setted_username ) ; password_box . setText ( LoginActivity . setted_password ) ; username_box . setSelection ( LoginActivity . setted_username . length ( ) ) ; } login_button = ( ( Button ) ( findViewById ( login_button_for_girl ) ) ) ; login_button . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { String username = username_box . getText ( ) . toString ( ) . trim ( ) ; String password = password_box . getText ( ) . toString ( ) . trim ( ) ; if ( ( username . isEmpty ( ) ) || ( password . isEmpty ( ) ) ) { <START_BUG> Toast . makeText ( LoginActivity . this , "虽然是女生节,还是需要账号密码的" , LENGTH_SHORT ) . show ( ) ; <END_BUG> return ; } MainActivity . cur_username = username ; MainActivity . cur_password = password ; FileOperation . save_to_file ( LoginActivity . this , LoginActivity . VERIFY_FILE_NAME , "" ) ; finish ( ) ; } } ) ; } @ Override public boolean onKeyDown ( int keyCode , KeyEvent event ) { } }

Fix:
Toast . makeText ( LoginActivity . this , "尼玛,<seq2seq4repair_space>你怎么不输入账号密码呢!!!" , LENGTH_SHORT ) . show ( ) ;
Buggy code:
@ Controller public class PersonalController extends AbstractBaseController { @ Autowired private UserRegistrationInformationService userRegistrationInformationService ; @ Autowired private CandidateDataModelAndView candidateDataModelAndView ; @ Autowired private PersonalInfoValidator personalInfoValidator ; public ModelAndView personalDataTabHandler ( final GdeUser user , final HttpServletRequest request , final HttpServletResponse response , final Model model , final CandidateDataDto candidateDataDto , final Locale locale , final BindingResult result ) { try { personalDocumentHandler ( user , candidateDataDto ) ; personalInfoValidator . validate ( candidateDataDto . getPersonalDataDto ( ) , result ) ; if ( result . hasErrors ( ) ) { model . addAttribute ( "onCancelMessage" , getMessageSource ( ) . getMessage ( "on.cancel.message" , null , locale ) ) ; model . addAttribute ( "pageTitle" , getMessageSource ( ) . getMessage ( "personal.page.title" , null , locale ) ) ; model . addAttribute ( "compareDateErrMsg" , getMessageSource ( ) . getMessage ( "registration.compareDateErrMsg" , null , locale ) ) ; if ( ( result . getFieldError ( "actionType" ) ) != null ) { model . addAttribute ( "errorMessage" , getMessageSource ( ) . getMessage ( "allrequiredfields" , null , locale ) ) ; model . addAttribute ( "requiredErrMsg" , getMessageSource ( ) . getMessage ( "registration.requiredErrMsg" , null , locale ) ) ; } candidateDataDto . setClickedTabId ( PERSONAL_DATA_FORM . getInternal ( ) ) ; return candidateDataModelAndView . view ( "candidatedata" , model , request , response , locale ) ; } model . addAttribute ( "onCancelMessage" , getMessageSource ( ) . getMessage ( "on.cancel.message" , null , locale ) ) ; model . addAttribute ( "pageTitle" , getMessageSource ( ) . getMessage ( "personal.page.title" , null , locale ) ) ; model . addAttribute ( "compareDateErrMsg" , getMessageSource ( ) . getMessage ( "registration.compareDateErrMsg" , null , locale ) ) ; userRegistrationInformationService . savePersonalData ( candidateDataDto . getPersonalDataDto ( ) , user ) ; model . addAttribute ( "confirmationMessage" , getMessageSource ( ) . getMessage ( "registration.submit.data.confirmation.message" , null , locale ) ) ; } catch ( Exception e ) { <START_BUG> throw new GDEExceptioon ( e ) ; <END_BUG> } return candidateDataModelAndView . view ( "candidatedata" , model , request , response , locale ) ; } public boolean submitPersonalData ( final GdeUser user , final HttpServletRequest request , final HttpServletResponse response , final Model model , final CandidateDataDto candidateDataDto , final Locale locale , final BindingResult result ) { } private void personalDocumentHandler ( final GdeUser user , final CandidateDataDto candidateDataDto ) { } No newline ; at end ; of file ; }

Fix:
throw new GDEException ( e ) ;