nus-yam/ex-repair huggingface dataset:
Buggy code:
@ SuppressWarnings ( "serial" ) public class AsyncAnnotationAdvisor extends AbstractPointcutAdvisor implements BeanFactoryAware { private AsyncUncaughtExceptionHandler exceptionHandler ; private Advice advice ; private Pointcut pointcut ; public AsyncAnnotationAdvisor ( ) { } @ SuppressWarnings ( "unchecked" ) public AsyncAnnotationAdvisor ( Executor executor , AsyncUncaughtExceptionHandler exceptionHandler ) { } public void setTaskExecutor ( Executor executor ) { <START_BUG> this . advice = buildAdvice ( executor , this . exceptionHandler ) ; <END_BUG> } public void setAsyncAnnotationType ( Class < ? extends Annotation > asyncAnnotationType ) { } @ Override public void setBeanFactory ( BeanFactory beanFactory ) { } @ Override public Advice getAdvice ( ) { } @ Override public Pointcut getPointcut ( ) { } protected Advice buildAdvice ( Executor executor , AsyncUncaughtExceptionHandler exceptionHandler ) { } protected Pointcut buildPointcut ( Set < Class < ? extends Annotation > > asyncAnnotationTypes ) { } }

Fix:
this . advice = buildAdvice ( executor , exceptionHandler ) ;
Buggy code:
public class EngineRPC extends RemoteServiceServlet implements LibreRPC { private static final long serialVersionUID = 1024L ; static DAO dba = new DAO ( ) ; @ Override public String login ( String email , String password ) { } @ Override public String register ( String email , String password , String displayName ) { } @ Override public String login ( String sessionId ) { } @ Override public List < Project > getProjectList ( String sessionId ) { } private Key < LDUser > getUser ( String sessionId ) { } public String createProject ( String sessionId , String projectName ) { } @ Override public String endSession ( String sessionId ) { } @ Override public String createDiagram ( String sessionId , long projectId , String DiagramName , DiagramType type ) { } @ Override public List < Diagram > getDiagramList ( String sessionId , long projectId ) { } @ SuppressWarnings ( "unchecked" ) @ Override public String addClass ( String sessionId , long branch , UMLClass theClass ) { Key < LDUser > owner = getUser ( sessionId ) ; if ( owner == null ) return null ; theClass . id = AutoIncrement . classToLong ( UMLClass . class ) ; theClass . m_operations = new Vector < Key < UMLOperation > > ( ) ; for ( UMLOperation o : theClass . operations ) { o . id = AutoIncrement . getNextId ( UMLOperation . class ) ; theClass . m_operations . add ( ( ( Key < UMLOperation > ) ( EngineRPC . dba . put ( o ) ) ) ) ; } theClass . m_attributes = new Vector < Key < UMLAttribute > > ( ) ; for ( UMLAttribute a : theClass . attributes ) { a . id = AutoIncrement . getNextId ( UMLAttribute . class ) ; theClass . m_attributes . add ( ( ( Key < UMLAttribute > ) ( EngineRPC . dba . put ( a ) ) ) ) ; } theClass . m_createdBy = owner ; theClass . m_modifiedBy = owner ; Key < DiagramEntity > key = ( ( Key < DiagramEntity > ) ( EngineRPC . dba . put ( theClass ) ) ) ; Key < Version > v = EngineRPC . dba . getLatestVersion ( new Key < Branch > ( Branch . class , branch ) ) ; if ( v == null ) { Version next = new Version ( 0 , null , owner ) ; next . add ( key ) ; EngineRPC . dba . putNewVersion ( new Key < Branch > ( Branch . class , branch ) , ( ( Key < Version > ) ( EngineRPC . dba . put ( next ) ) ) ) ; return "Sucsess" ; } else { Version latest = ( ( Version ) ( EngineRPC . dba . get ( v ) ) ) ; <START_BUG> Version next = latest . next ( owner ) ; <END_BUG> next . add ( key ) ; EngineRPC . dba . putNewVersion ( new Key < Branch > ( Branch . class , branch ) , ( ( Key < Version > ) ( EngineRPC . dba . put ( next ) ) ) ) ; return "Sucsess" ; } } @ Override public List < DiagramEntity > getEntities ( String sessionId , long branch ) { } @ Override public Project getProject ( long id ) { } @ Override public Diagram getDiagram ( long id ) { } @ Override public DiagramEntity getObject ( Key < ? > key ) { } }

Fix:
Version next = TransientUpdator . nextVersion ( v , owner ) ;
Buggy code:
public class InterfaceView extends ClassOrInterfaceView < Interface > { @ Override protected String renderDeclarationType ( ) { } @ Override public String extendsOrImplementsInterfaces ( ) { } @ Override protected String renderSuperType ( CodeGenerator cg , Interface model ) { } @ Override protected Object wrapField ( Field field ) { } @ Override <START_BUG> public Object wrapMethod ( Interface method ) { <END_BUG> return new com . speedment . codegen . lang . models . implementation . InterfaceMethodImpl ( method ) ; } No newline ; at end ; of file ; }

Fix:
public Object wrapMethod ( Method method ) {
Buggy code:
public class Playlist extends NavigationDrawerList implements PlaylistAdapter . OnItemClickListener { public static final String TAG = Playlist . class . getName ( ) ; private PlaylistAdapter adapter ; @ SuppressWarnings ( "unused" ) public Playlist ( Context context ) { } @ SuppressWarnings ( "unused" ) public Playlist ( Context context , AttributeSet attrs ) { } @ SuppressWarnings ( "unused" ) public Playlist ( Context context , AttributeSet attrs , int defStyle ) { } private void inflateLayout ( Context context ) { } private void initRecycleView ( Context context ) { } public void onActivityCreated ( NavigationDrawerFragment parent ) { } @ Override public void onItemClick ( View view , EnhancedMediaPlayer player , int position ) { if ( super . isInSelectionMode ) super . onItemSelected ( view , position ) ; else if ( ( this . parent ) != null ) <START_BUG> this . adapter . startPlayList ( player , position ) ; <END_BUG> } @ Override protected int getActionModeTitle ( ) { } @ Override protected void onDeleteSelected ( SparseArray < View > selectedItems ) { } @ Override protected int getItemCount ( ) { } public void notifyDataSetChanged ( ) { } }

Fix:
this . adapter . startOrStopPlayList ( player , position ) ;
Buggy code:
public class GlobalSettings extends Controller { public static Result index ( ) { } public static Result save ( ) { } public static Result testNotifications ( ) { <START_BUG> String title = "Home<seq2seq4repair_space>Dash" ; <END_BUG> String body = "This<seq2seq4repair_space>is<seq2seq4repair_space>a<seq2seq4repair_space>test<seq2seq4repair_space>notification<seq2seq4repair_space>from<seq2seq4repair_space>Home<seq2seq4repair_space>Dash" ; Notifications . send ( title , body ) ; return ok ( ) ; } public static Result generateAPI ( ) { } }

Fix:
String title = "Test" ;
Buggy code:
@ RunWith ( Arquillian . class ) public class DeploymentPackagedRATestCase { private static final String EAR_NAME = "ear-containing-rar" ; private static final String RAR_NAME = "rar-within-a-ear" ; private static final String EJB_JAR_NAME = "ejb-jar" ; @ Deployment public static Archive createDeplyoment ( ) { final EnterpriseArchive ear = ShrinkWrap . create ( EnterpriseArchive . class , ( ( DeploymentPackagedRATestCase . EAR_NAME ) + ".ear" ) ) ; final JavaArchive rar = ShrinkWrap . create ( JavaArchive . class , ( ( DeploymentPackagedRATestCase . RAR_NAME ) + ".rar" ) ) ; <START_BUG> rar . addAsManifestResource ( "ejb//mdb//resourceadapter//ra.xml" , "ra.xml" ) ; <END_BUG> final JavaArchive ejbJar = ShrinkWrap . create ( JavaArchive . class , ( ( DeploymentPackagedRATestCase . EJB_JAR_NAME ) + ".jar" ) ) ; ejbJar . addClasses ( NonJMSMDB . class , DeploymentPackagedRATestCase . class ) ; final JavaArchive libJar = ShrinkWrap . create ( JavaArchive . class , "common-lib.jar" ) ; libJar . addClasses ( SimpleActivationSpec . class , SimpleResourceAdapter . class , SimpleMessageListener . class , ResourceAdapterDeploymentTracker . class ) ; ear . addAsModule ( rar ) ; ear . addAsModule ( ejbJar ) ; ear . addAsLibrary ( libJar ) ; return ear ; } @ Test public void testRADeployment ( ) throws Exception { } }

Fix:
rar . addAsManifestResource ( DeploymentPackagedRATestCase . class . getPackage ( ) , "ra.xml" , "ra.xml" ) ;
Buggy code:
@ ManagedBean ( name = "registerCustomer" ) public class RegisterCustomerController { @ EJB ( beanName = "cFacade" ) private CustomerFacade facade ; private String email ; private String password ; private String firstName ; private String lastName ; private Date birthDay ; private Address address ; private String registerError ; @ ManagedProperty ( "#{customerSession}" ) private CustomerSessionController session ; public String registerCustomer ( ) { if ( ! ( facade . existsEmail ( email ) ) ) { Customer customer = facade . createCustomer ( email , password , firstName , lastName , birthDay ) ; session . setCustomer ( customer ) ; <START_BUG> return "customerArea" ; <END_BUG> } else { setRegisterError ( "Email<seq2seq4repair_space>already<seq2seq4repair_space>exists" ) ; return "registerCustomer" ; } } public String getEmail ( ) { } public void setEmail ( String email ) { } public String getPassword ( ) { } public void setPassword ( String password ) { } public String getFirstName ( ) { } public void setFirstName ( String firstName ) { } public String getLastName ( ) { } public void setLastName ( String lastName ) { } public Date getBirthDay ( ) { } public void setBirthDay ( Date birthDay ) { } public String getRegisterError ( ) { } public void setRegisterError ( String registerError ) { } public CustomerSessionController getSession ( ) { } public void setSession ( CustomerSessionController session ) { } public Address getAddress ( ) { } public void setAddress ( Address address ) { } }

Fix:
return "customerArea.jsp" ;
Buggy code:
public class Multiplication { private String yesOrNo ; private Scanner userInput = new Scanner ( System . in ) ; Decide userDecision = new Decide ( ) ; public void decide ( ) { } private void basic ( ) { } private void two ( ) { } private void three ( ) { } private void arthur ( ) { } private int recursiveLoop ( int firstInt , int secondInt , int answer ) { } private void repeat ( ) { System . out . println ( "Do<seq2seq4repair_space>you<seq2seq4repair_space>want<seq2seq4repair_space>to<seq2seq4repair_space>keep<seq2seq4repair_space>going?" ) ; System . out . println ( "Yes<seq2seq4repair_space>to<seq2seq4repair_space>continue.<seq2seq4repair_space>No<seq2seq4repair_space>to<seq2seq4repair_space>quit.\n" ) ; System . out . println ( "Type<seq2seq4repair_space>\'menu\'<seq2seq4repair_space>to<seq2seq4repair_space>return<seq2seq4repair_space>to<seq2seq4repair_space>the<seq2seq4repair_space>menu<seq2seq4repair_space>\nor<seq2seq4repair_space>\'home\'<seq2seq4repair_space>to<seq2seq4repair_space>go<seq2seq4repair_space>back<seq2seq4repair_space>and<seq2seq4repair_space>choose<seq2seq4repair_space>a<seq2seq4repair_space>different<seq2seq4repair_space>problem" ) ; yesOrNo = userInput . nextLine ( ) ; if ( yesOrNo . equalsIgnoreCase ( "yes" ) ) <START_BUG> basic ( ) ; <END_BUG> if ( yesOrNo . equalsIgnoreCase ( "no" ) ) return ; if ( yesOrNo . equalsIgnoreCase ( "menu" ) ) decide ( ) ; if ( yesOrNo . equalsIgnoreCase ( "home" ) ) userDecision . startUp ( ) ; } No newline ; at end ; of file ; }

Fix:
decide ( ) ;
Buggy code:
public class DetailController extends ScreenController implements Initializable { @ FXML private ComboBox < String > sexComboBox ; @ FXML private ComboBox < Integer > ageComboBox ; @ FXML private ComboBox < Integer > yearComboBox ; @ FXML private ComboBox < Integer > monthComboBox ; @ FXML private ComboBox < String > firstLanguageComboBox ; private Store store ; public DetailController ( Object parent , Display display , Store store ) { } public Map < String , String > getResult ( ) { } public void load ( Config items ) { } public void update ( Config items ) { super . update ( ( ) -> { Map < String , String > m = store . getDetails ( ) ; <START_BUG> if ( m != null ) { <END_BUG> sexComboBox . setValue ( m . get ( "sex" ) ) ; ageComboBox . setValue ( Integer . parseInt ( m . get ( "age" ) ) ) ; yearComboBox . setValue ( Integer . parseInt ( m . get ( "yearsInAustralia" ) ) ) ; monthComboBox . setValue ( Integer . parseInt ( m . get ( "monthsInAustralia" ) ) ) ; firstLanguageComboBox . setValue ( m . get ( "firstLanguage" ) ) ; } nextButton . requestFocus ( ) ; } ) ; } public void initialize ( URL url , ResourceBundle rb ) { } }

Fix:
if ( ! ( m . isEmpty ( ) ) ) {
Buggy code:
@ Named @ SessionScoped public class SocialClient implements Serializable { private static final long serialVersionUID = 3723552335163650582L ; @ Inject private MultiServicesManager manager ; @ Inject private Logger log ; public MultiServicesManager getManager ( ) { } public void setManager ( MultiServicesManager manager ) { } @ Produces @ Named public OAuthService getCurrentService ( ) { } public void setCurrentService ( OAuthService currentService ) { } public Map < String , OAuthService > getServicesMap ( ) { } public List < OAuthService > getServices ( ) { } public OAuthToken getAccessToken ( ) { } public void connectCurrentService ( ) { } public String getCurrentServiceName ( ) { } public void setCurrentServiceName ( String cursrvHdlStr ) { } public void redirectToAuthorizationURL ( String url ) throws IOException { } public String getTimeLineUrl ( ) { <START_BUG> if ( getCurrentService ( ) . isConnected ( ) ) <END_BUG> return ( "//WEB-INF//fragments//" + ( getCurrentService ( ) . getType ( ) . toLowerCase ( ) ) ) + ".xhtml" ; return "" ; } public void serviceInit ( String servType ) throws IOException { } public void resetConnection ( ) { } }

Fix:
if ( ( ( getCurrentService ( ) ) != null ) && ( getCurrentService ( ) . isConnected ( ) ) )
Buggy code:
class KeyBindingState { private static boolean isFirstStrokeModified ( List keyStrokes ) { } private boolean collapseFully ; private KeySequence currentSequence ; private boolean safeToReset ; private final IWorkbench workbench ; KeyBindingState ( IWorkbench workbenchToNotify ) { } KeySequence getCurrentSequence ( ) { } boolean isSafeToReset ( ) { } void reset ( ) { } void setCollapseFully ( boolean collapse ) { } void setCurrentSequence ( KeySequence sequence ) { List keyStrokes = sequence . getKeyStrokes ( ) ; <START_BUG> if ( ( ( keyStrokes . size ( ) ) > 2 ) && ( KeyBindingState . isFirstStrokeModified ( keyStrokes ) ) ) { <END_BUG> safeToReset = false ; } currentSequence = sequence ; updateStatusLines ( ) ; } private void updateStatusLine ( IWorkbenchWindow window , String text ) { } private void updateStatusLines ( ) { } }

Fix:
if ( ( ( keyStrokes . size ( ) ) > 2 ) || ( KeyBindingState . isFirstStrokeModified ( keyStrokes ) ) ) {
Buggy code:
public class SimplePageTest extends WicketTestCase { private static final Logger log = LoggerFactory . getLogger ( SimplePageTest . class ) ; public void testRenderHomePage ( ) throws Exception { <START_BUG> tester . startComponent ( MyFormComponentPanel . class , null ) ; <END_BUG> String doc = tester . getLastResponseAsString ( ) ; assertEquals ( doc , "<wicket:panel>test<//wicket:panel>" ) ; } }

Fix:
tester . startComponentInPage ( MyFormComponentPanel . class ) ;
Buggy code:
public class ArgsWeaveTestCase extends WeaveTestCase { public ArgsWeaveTestCase ( String name ) { } public void testAfterReturningArgs ( ) throws IOException { } public void testFancyAfterReturningArgs ( ) throws IOException { } public void testThrowing ( ) throws IOException { } public void testLots ( ) throws IOException { } InstructionList getArgsAdviceTag ( BcelShadow shadow , String where ) { } private BcelAdvice makeArgsMunger ( final String kindx ) { ResolvedType rtx = world . resolve ( UnresolvedType . forName ( "Aspect" ) , true ) ; <START_BUG> assertTrue ( "Cant<seq2seq4repair_space>find<seq2seq4repair_space>required<seq2seq4repair_space>type<seq2seq4repair_space>Aspect" , ( rtx != ( ResolvedType . MISSING ) ) ) ; <END_BUG> return new BcelAdvice ( AdviceKind . stringToKind ( kindx ) , makePointcutNoZeroArg ( ) , MemberImpl . method ( UnresolvedType . forName ( "Aspect" ) , 0 , "foo" , "()V" ) , 0 , ( - 1 ) , ( - 1 ) , null , rtx ) { public void specializeOn ( Shadow shadow ) { super . specializeOn ( shadow ) ; shadow . getArgVar ( 0 ) ; } public InstructionList getAdviceInstructions ( BcelShadow shadow , BcelVar extraVar , InstructionHandle fk ) { return getArgsAdviceTag ( shadow , kindx ) ; } } ; } }

Fix:
assertTrue ( "Cant<seq2seq4repair_space>find<seq2seq4repair_space>required<seq2seq4repair_space>type<seq2seq4repair_space>Aspect" , ( ! ( rtx . isMissing ( ) ) ) ) ;
Buggy code:
public class StatsAggregator extends NumericMetricsAggregator . MultiValue { final Numeric valuesSource ; final ValueFormatter formatter ; LongArray counts ; DoubleArray sums ; DoubleArray mins ; DoubleArray maxes ; public StatsAggregator ( String name , ValuesSource . Numeric valuesSource , ValueFormatter formatter , AggregationContext context , Aggregator parent , List < PipelineAggregator > pipelineAggregators , Map < String , Object > metaData ) throws IOException { } @ Override public boolean needsScores ( ) { } @ Override public LeafBucketCollector getLeafCollector ( LeafReaderContext ctx , final LeafBucketCollector sub ) throws IOException { } @ Override public boolean hasMetric ( String name ) { } @ Override public double metric ( String name , long owningBucketOrd ) { } @ Override public InternalAggregation buildAggregation ( long bucket ) { } @ Override public InternalAggregation buildEmptyAggregation ( ) { } public static class Factory extends ValuesSourceAggregatorFactory . LeafOnly < ValuesSource . Numeric > { public Factory ( String name ) { } @ Override protected Aggregator createUnmapped ( AggregationContext aggregationContext , Aggregator parent , List < PipelineAggregator > pipelineAggregators , Map < String , Object > metaData ) throws IOException { } @ Override protected Aggregator doCreateInternal ( ValuesSource . Numeric valuesSource , AggregationContext aggregationContext , Aggregator parent , boolean collectsFromSingleBucket , List < PipelineAggregator > pipelineAggregators , Map < String , Object > metaData ) throws IOException { } @ Override protected ValuesSourceAggregatorFactory < Numeric > innerReadFrom ( String name , ValuesSourceType valuesSourceType , ValueType targetValueType , StreamInput in ) { <START_BUG> return new StatsAggegator . Factory ( name ) ; <END_BUG> } @ Override protected void innerWriteTo ( StreamOutput out ) { } @ Override public XContentBuilder doXContentBody ( XContentBuilder builder , Params params ) throws IOException { } @ Override protected int innerHashCode ( ) { } @ Override protected boolean innerEquals ( Object obj ) { } } @ Override public void doClose ( ) { } }

Fix:
return new StatsAggregator . Factory ( name ) ;
Buggy code:
@ Component public class DatabaseInitializer { private static final Logger LOGGER = LogManager . getLogger ( DatabaseInitializer . class . getName ( ) ) ; @ Autowired private CouncilAlertUserDetailsService councilAlertUserService ; @ Autowired private EmployeeServiceImpl employeeService ; @ Autowired private ReportServiceImpl reportService ; @ Autowired private UserServiceImpl userService ; @ PostConstruct public void postConstruct ( ) { } private Employee getDefaultAdminEmp ( ) { Employee employee = new Employee ( ) ; employee . setEmail ( "admin@council-alert.com" ) ; employee . setPassword ( SECRET_PASSWORD ) ; employee . setFirstName ( "Jason" ) ; employee . setLastName ( "Germaine" ) ; <START_BUG> employee . setPhoneNum ( "123-Council-Alert" ) ; <END_BUG> employee . setLatitude ( 53.2884615 ) ; employee . setLongitude ( ( - 6.3525261 ) ) ; return employee ; } }

Fix:
employee . setPhoneNum ( "12334567" ) ;
Buggy code:
public class Key { public Key ( String scope , String type , String keyname ) throws IllegalArgumentException { } public String get_scope ( ) { } public String get_type ( ) { } public String get_keyname ( ) { } public String toString ( ) { } public static Key buildkey ( List < String > key ) throws IllegalArgumentException { if ( ( key . size ( ) ) < 3 ) { throw new IllegalArgumentException ( ( ( "Tried<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>a<seq2seq4repair_space>key<seq2seq4repair_space>out<seq2seq4repair_space>of<seq2seq4repair_space>" + ( key . size ( ) ) ) + "<seq2seq4repair_space>arguments.<seq2seq4repair_space>At<seq2seq4repair_space>leest<seq2seq4repair_space>three<seq2seq4repair_space>(scope,<seq2seq4repair_space>type,<seq2seq4repair_space>keyname)<seq2seq4repair_space>of<seq2seq4repair_space>them<seq2seq4repair_space>are<seq2seq4repair_space>necessary." ) ) ; } <START_BUG> return new Key ( key . get ( 0 ) , key . get ( 1 ) , key . get ( 2 ) ) ; <END_BUG> } public List < String > _buildkey ( ) { } public boolean equals ( Object obj ) { } public int hashCode ( ) { } private final String scope ; private final String keyname ; private final String type ; }

Fix:
return new Key ( key . get ( 0 ) , key . get ( 2 ) , key . get ( 1 ) ) ;
Buggy code:
public class Credentials { static Logger logger = Logger . getLogger ( Credentials . class . getName ( ) ) ; private File privateKeyFile ; public Credentials ( File privateKeyFile ) { } public String getPrivateKeyPath ( ) { } public File getPrivateKeyFile ( ) { } public File getPublicKeyFile ( ) { } public String getPublicKey ( ) throws IOException { <START_BUG> return FileUtils . readFileToString ( getPrivateKeyFile ( ) ) ; <END_BUG> } public void validate ( ) { } public File getParentDirectory ( ) { } public void ensure ( ) throws IOException , InterruptedException { } protected static void validateKeyFile ( File file ) { } public static File publicKeyForPrivate ( File privateKeyFile ) { } }

Fix:
return FileUtils . readFileToString ( getPublicKeyFile ( ) ) ;
Buggy code:
public class BFS extends RecursiveAction { private static final long serialVersionUID = 1L ; private int found ; private int target ; private Graph graph ; private int threshold ; public BFS ( int target , Graph graph , int threshold ) { } public int seqCount ( ) { } public static int seqCount ( int target , Graph graph ) { int t ; if ( target == ( graph . value ) ) t = 1 ; else t = 0 ; for ( int i = 0 ; i < ( graph . children . length ) ; i ++ ) { <START_BUG> t += BFS . seqCount ( target , graph . children [ 0 ] ) ; <END_BUG> } return t ; } public int parCount ( ) { } @ Override protected void compute ( ) { } public static boolean probe ( Graph graph , int threshold ) { } public static void main ( String [ ] args ) { } }

Fix:
t += BFS . seqCount ( target , graph . children [ i ] ) ;
Buggy code:
public class LoadRecentProject extends Load { private static final String USER_PREFS_KEY = "recent_file_" ; private static final int NUMBER_OF_MENU_ITEMS = 9 ; private static final Set < String > commands = new HashSet < String > ( ) ; private static final Preferences prefs = Preferences . userNodeForPackage ( LoadRecentProject . class ) ; public LoadRecentProject ( ) { } @ Override public Set < String > getActionNames ( ) { } @ Override public void doAction ( ActionEvent e ) { } private File getRecentFile ( ActionEvent e ) { } public static List < JComponent > getRecentFileMenuItems ( ) { } public static void updateRecentFileMenuItems ( List < JComponent > menuItems , String loadedFileName ) { } private static void updateMenuItems ( List < JComponent > menuItems ) { boolean someRecentFiles = false ; for ( int i = 0 ; i < ( LoadRecentProject . NUMBER_OF_MENU_ITEMS ) ; i ++ ) { JMenuItem recentFile = ( ( JMenuItem ) ( menuItems . get ( i ) ) ) ; String recentFilePath = LoadRecentProject . getRecentFile ( i ) ; if ( recentFilePath != null ) { File file = new File ( recentFilePath ) ; <START_BUG> StringBuffer sb = new StringBuffer ( 60 ) ; <END_BUG> if ( i < 9 ) { sb . append ( ( i + 1 ) ) . append ( "<seq2seq4repair_space>" ) ; } sb . append ( LoadRecentProject . getMenuItemDisplayName ( file ) ) ; recentFile . setText ( sb . toString ( ) ) ; recentFile . setToolTipText ( recentFilePath ) ; recentFile . setEnabled ( true ) ; recentFile . setVisible ( true ) ; someRecentFiles = true ; } else { recentFile . setEnabled ( false ) ; recentFile . setVisible ( false ) ; } } JSeparator separator = ( ( JSeparator ) ( menuItems . get ( ( ( menuItems . size ( ) ) - 1 ) ) ) ) ; separator . setVisible ( someRecentFiles ) ; } private static String getMenuItemDisplayName ( File file ) { } private static int getShortcutKey ( int index ) { } public static String getRecentFile ( int index ) { } private static void setRecentFile ( int index , String fileName ) { } }

Fix:
StringBuilder sb = new StringBuilder ( 60 ) ;
Buggy code:
@ Test ( groups = "live" ) public class Go2CloudJohannesburg1TemplateBuilderLiveTest extends BaseTemplateBuilderLiveTest { public Go2CloudJohannesburg1TemplateBuilderLiveTest ( ) { } @ Test public void testDefaultTemplateBuilder ( ) throws IOException { Template defaultTemplate = this . view . getComputeService ( ) . templateBuilder ( ) . build ( ) ; assertEquals ( defaultTemplate . getImage ( ) . getOperatingSystem ( ) . is64Bit ( ) , true ) ; <START_BUG> assertEquals ( defaultTemplate . getImage ( ) . getOperatingSystem ( ) . getVersion ( ) , "10.10" ) ; <END_BUG> assertEquals ( defaultTemplate . getImage ( ) . getOperatingSystem ( ) . getFamily ( ) , UBUNTU ) ; assertEquals ( defaultTemplate . getLocation ( ) . getId ( ) , "go2cloud-jhb1" ) ; assertEquals ( getCores ( defaultTemplate . getHardware ( ) ) , 1.0 ) ; } @ Override protected Set < String > getIso3166Codes ( ) { } }

Fix:
assertEquals ( defaultTemplate . getImage ( ) . getOperatingSystem ( ) . getVersion ( ) , "12.04" ) ;
Buggy code:
public class ConfigManager { private PerWorldInventory plugin ; private YamlConfiguration config ; private YamlConfiguration worlds ; private static ConfigManager manager ; private ConfigManager ( PerWorldInventory plugin ) { } public static ConfigManager getManager ( PerWorldInventory plugin ) { } public static void disable ( ) { } public File getConfigFile ( ) { } public File getWorldsFile ( ) { } public boolean getShouldSerialize ( String path ) { } public void reloadConfig ( ) { } public void reloadWorlds ( ) { } public void saveConfig ( ) { } public void saveWorlds ( ) { } private void setConfigDefaults ( ) { } private void setWorldsDefaults ( ) { YamlConfiguration worlds = getWorlds ( ) ; List < String > defaults = new ArrayList < > ( ) ; defaults . add ( "world" ) ; defaults . add ( "world_nether" ) ; defaults . add ( "world_the_end" ) ; <START_BUG> addDefault ( worlds , "default" , defaults ) ; <END_BUG> } private void addDefault ( YamlConfiguration config , String path , Object value ) { } public YamlConfiguration getConfig ( ) { } public YamlConfiguration getWorlds ( ) { } }

Fix:
addDefault ( worlds , "groups.default" , defaults ) ;
Buggy code:
public class JarPackageFragmentRoot extends PackageFragmentRoot { protected IPath fJarPath = null ; protected static final char ATTACHMENT_PROPERTY_DELIMITER = '*' ; protected JarPackageFragmentRoot ( String jarPath , IJavaProject project ) { } protected JarPackageFragmentRoot ( IResource resource , IJavaProject project ) { } public void attachSource ( IPath zipPath , IPath rootPath , IProgressMonitor monitor ) throws JavaModelException { } protected void closing ( Object info ) throws JavaModelException { } protected boolean computeChildren ( OpenableElementInfo info ) throws JavaModelException { } protected void computeJarChildren ( JarPackageFragmentRootInfo info , ArrayList vChildren ) throws JavaModelException { } protected OpenableElementInfo createElementInfo ( ) { } protected int determineKind ( IResource underlyingResource ) throws JavaModelException { } public boolean equals ( Object o ) { } public IClasspathEntry findSourceAttachmentRecommendation ( ) { } public ZipFile getJar ( ) throws CoreException { } public IJavaProject getJavaProject ( ) { } public int getKind ( ) { } public Object [ ] getNonJavaResources ( ) throws JavaModelException { } public IPackageFragment getPackageFragment ( String packageName ) { } public IPath getPath ( ) { } public IPath getSourceAttachmentPath ( ) throws JavaModelException { } protected String getSourceAttachmentProperty ( ) throws JavaModelException { } public void setSourceAttachmentProperty ( String property ) { } protected QualifiedName getSourceAttachmentPropertyName ( ) throws JavaModelException { } public IPath getSourceAttachmentRootPath ( ) throws JavaModelException { } public SourceMapper getSourceMapper ( ) { } public IResource getUnderlyingResource ( ) throws JavaModelException { } public boolean hasChildren ( ) throws JavaModelException { } public int hashCode ( ) { } public boolean isArchive ( ) { } public boolean isExternal ( ) { } public boolean isReadOnly ( ) { } protected void openWhenClosed ( IProgressMonitor pm , IBuffer buffer ) throws JavaModelException { } public void refreshChildren ( ) { } public IJavaElement rootedAt ( IJavaProject project ) { } public void setSourceMapper ( SourceMapper mapper ) throws JavaModelException { } protected void verifyAttachSource ( IPath zipPath ) throws JavaModelException { <START_BUG> if ( ! ( exists0 ( ) ) ) { <END_BUG> throw newNotPresentException ( ) ; } else if ( ( zipPath != null ) && ( ! ( zipPath . isAbsolute ( ) ) ) ) { throw new JavaModelException ( new JavaModelStatus ( IJavaModelStatusConstants . RELATIVE_PATH , zipPath ) ) ; } } public String getHandleMemento ( ) { } }

Fix:
if ( ! ( exists ( ) ) ) {
Buggy code:
public class YearDV extends AbstractDateTimeDV { public Object getActualValue ( String content , ValidationContext context ) throws InvalidDatatypeValueException { try { return parse ( content , null ) ; } catch ( Exception ex ) { <START_BUG> throw new InvalidDatatypeValueException ( "not<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>year" ) ; <END_BUG> } } protected int [ ] parse ( String str , int [ ] date ) throws SchemaDateTimeException { } protected String dateToString ( int [ ] date ) { } }

Fix:
throw new InvalidDatatypeValueException ( "cvc-datatype-valid.1.2.1" , new Object [ ] { content , "gYear" } ) ;
Buggy code:
public class MultiToolCommand extends CommandHandler { private static final String PERMISSIONS_PREFIX = "multitool.commands." ; public MultiToolCommand ( Multitool pl ) { } public boolean onCommand ( CommandSender sender , Command command , String label , String [ ] args ) { } private void printList ( CommandSender sender ) { sender . sendMessage ( ( ( ChatColor . AQUA ) + "Tools:" ) ) ; for ( Tool t : pl . getToolHandler ( ) . getTools ( ) ) { <START_BUG> sender . sendMessage ( ( ( ( ( ChatColor . GRAY ) + "-<seq2seq4repair_space>" ) + ( ChatColor . AQUA ) ) + ( t . getName ( ) ) ) ) ; <END_BUG> } } }

Fix:
sender . sendMessage ( ( ( ( ( ChatColor . GRAY ) + "-<seq2seq4repair_space>" ) + ( ChatColor . AQUA ) ) + ( t . getName ( ) . replaceAll ( "<seq2seq4repair_space>" , "" ) ) ) ) ;
Buggy code:
public final class Main { private static GameThread gameThread ; private static Gui gui ; private static GuiIngame ingameGui ; private static ArrayList < Method > initMethods ; private static InputManager inputManager ; private static Level level ; private static JFrame mainFrame ; private static EntityPlayer player ; private static Render render ; private static RenderHelper renderHelper ; private static int ticks ; public static void addTick ( ) { } public static void closeGui ( ) { } public static void closeLevel ( ) { } public static void exit ( ) { } public static double getDelta ( ) { } public static int getFPS ( ) { } public static Gui getGui ( ) { } public static InputManager getInputManager ( ) { } public static Level getLevel ( ) { } public static EntityPlayer getPlayer ( ) { } public static Render getRender ( ) { } public static RenderHelper getRenderHelper ( ) { } public static int getTicks ( ) { } public static int getUPS ( ) { } public static void hide ( ) { } @ Init ( state = State . PRE ) public static void initFields ( ) { } @ Init ( state = State . PRE ) public static void initThreads ( ) { } public static void main ( String [ ] args ) { } public static void openGui ( Gui gui ) { } public static void pause ( ) { } public static void resume ( ) { } public static void show ( ) { } public static void startLevel ( Level l ) { if ( l != null ) { Main . level = l ; <START_BUG> Main . player = new EntityPlayer ( Main . level . getMap ( ) , Main . level . getMap ( ) . getSpawnX ( ) , Main . level . getMap ( ) . getSpawnY ( ) , Sprites . lordvO_EW , Sprites . lordvO_SN , Sprites . lordvO_WE , Sprites . lordvO_NS ) ; <END_BUG> l . generateAndPopulateAll ( ) ; Main . level . getMap ( ) . spawn ( Main . player ) ; Main . closeGui ( ) ; } } private static void init ( State state ) { } private static void startGame ( ) { } private Main ( ) { } }

Fix:
Main . player = new EntityPlayer ( Main . level . getMap ( ) , Main . level . getMap ( ) . getSpawnX ( ) , Main . level . getMap ( ) . getSpawnY ( ) , Sprites . lordvO_N , Sprites . lordvO_O , Sprites . lordvO_S , Sprites . lordvO_W ) ;
Buggy code:
public class CAnalyzerFactoryTest { FileAnalyzer analyzer ; private String ctagsProperty = "org.opensolaris.opengrok.analysis.Ctags" ; private static Ctags ctags ; private static TestRepository repository ; public CAnalyzerFactoryTest ( ) { } private static StreamSource getStreamSource ( final String fname ) { } @ BeforeClass public static void setUpClass ( ) throws Exception { CAnalyzerFactoryTest . ctags = new Ctags ( ) ; CAnalyzerFactoryTest . ctags . setBinary ( RuntimeEnvironment . getInstance ( ) . getCtags ( ) ) ; CAnalyzerFactoryTest . repository = new TestRepository ( ) ; <START_BUG> CAnalyzerFactoryTest . repository . create ( CxxAnalyzerFactoryTest . class . getResourceAsStream ( "//org//opensolaris//opengrok//index//source.zip" ) ) ; <END_BUG> } @ AfterClass public static void tearDownClass ( ) throws Exception { } @ Test public void testScopeAnalyzer ( ) throws Exception { } }

Fix:
CAnalyzerFactoryTest . repository . create ( CAnalyzerFactoryTest . class . getResourceAsStream ( "//org//opensolaris//opengrok//index//source.zip" ) ) ;
Buggy code:
public class TFT_Circle extends TranslatorBlock { public TFT_Circle ( Long blockId , Translator translator , String codePrefix , String codeSuffix , String label ) { } public String toCode ( ) throws SocketNullException , SubroutineNotDeclaredException { String XPos ; String YPos ; String Radius ; String Fill ; String Red_Fill ; String Green_Fill ; String Blue_Fill ; String Stroke ; String Red_Stroke ; String Green_Stroke ; String Blue_Stroke ; TranslatorBlock translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 0 ) ; XPos = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 1 ) ; YPos = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 2 ) ; Radius = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 3 ) ; Fill = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 4 ) ; Red_Fill = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 5 ) ; Green_Fill = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 6 ) ; Blue_Fill = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 7 ) ; Stroke = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 8 ) ; Red_Stroke = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 9 ) ; Green_Stroke = translatorBlock . toCode ( ) ; translatorBlock = this . getRequiredTranslatorBlockAtSocket ( 10 ) ; Blue_Stroke = translatorBlock . toCode ( ) ; translator . addHeaderFile ( "Esplora.h" ) ; translator . addHeaderFile ( "TFT.h" ) ; translator . addHeaderFile ( "SPI.h" ) ; translator . addSetupCommand ( "EsploraTFT.begin();" ) ; String ret = "" ; if ( Stroke . equals ( "true" ) ) { ret += ( ( ( ( ( "EsploraTFT.stroke(" + Red_Stroke ) + "," ) + Green_Stroke ) + "," ) + Blue_Stroke ) + ");\n" ; } else { ret += "EsploraTFT.noStroke();\n" ; } if ( Fill . equals ( "true" ) ) { <START_BUG> ret += ( ( ( ( ( "EsploraTFT.Fill(" + Red_Fill ) + "," ) + Green_Fill ) + "," ) + Blue_Fill ) + ");\n" ; <END_BUG> } else { ret += "EsploraTFT.noFill();\n" ; } ret += ( ( ( ( ( "EsploraTFT.circle(" + XPos ) + "," ) + YPos ) + "," ) + Radius ) + ");" ; return ret ; } }

Fix:
ret += ( ( ( ( ( "EsploraTFT.fill(" + Red_Fill ) + "," ) + Green_Fill ) + "," ) + Blue_Fill ) + ");\n" ;
Buggy code:
@ ActiveProfiles ( "test" ) @ Transactional @ TransactionConfiguration ( defaultRollback = true ) public abstract class BaseDbUnitTestCase extends DBTestCase { @ Autowired private DataSource dataSource ; @ Override protected final IDataSet getDataSet ( ) throws Exception { } @ NotNull protected InputStream defaultDataSetAsStream ( ) throws IOException { <START_BUG> return new FileInputStream ( "src//test//resources//dbunit//testdb.xml" ) ; <END_BUG> } @ NotNull protected IDatabaseConnection defaultDatabaseConnection ( ) throws SQLException { } @ Before public void setUp ( ) throws Exception { } }

Fix:
return new FileInputStream ( "src//test//resources//Dbunit//testdb.xml" ) ;
Buggy code:
public class BundleDeploymentProcessor implements DeploymentUnitProcessor { @ Override public void deploy ( final DeploymentPhaseContext phaseContext ) throws DeploymentUnitProcessingException { final DeploymentUnit depUnit = phaseContext . getDeploymentUnit ( ) ; final String contextName = depUnit . getName ( ) ; Deployment deployment = BundleInstallIntegration . removeDeployment ( contextName ) ; if ( deployment != null ) { deployment . setAutoStart ( false ) ; } <START_BUG> BundleInfo info = depUnit . getAttachment ( BUNDLE_INFO ) ; <END_BUG> if ( ( deployment == null ) && ( info != null ) ) { deployment = DeploymentFactory . createDeployment ( info ) ; deployment . addAttachment ( BundleInfo . class , info ) ; deployment . setAutoStart ( true ) ; CompositeIndex compositeIndex = depUnit . getAttachment ( COMPOSITE_ANNOTATION_INDEX ) ; DotName markerName = DotName . createSimple ( DeploymentMarker . class . getName ( ) ) ; for ( AnnotationInstance marker : compositeIndex . getAnnotations ( markerName ) ) { if ( ( marker . value ( "autoStart" ) . asBoolean ( ) ) == false ) { deployment . setAutoStart ( false ) ; break ; } } } if ( deployment != null ) { ModuleIdentifier identifier = depUnit . getAttachment ( MODULE_IDENTIFIER ) ; deployment . addAttachment ( ModuleIdentifier . class , identifier ) ; if ( allowAdditionalModuleDependencies ( depUnit ) ) { ModuleSpecification moduleSpec = depUnit . getAttachment ( MODULE_SPECIFICATION ) ; deployment . addAttachment ( ModuleSpecification . class , moduleSpec ) ; } depUnit . putAttachment ( DEPLOYMENT_KEY , deployment ) ; } } private boolean allowAdditionalModuleDependencies ( final DeploymentUnit depUnit ) { } @ Override public void undeploy ( final DeploymentUnit depUnit ) { } }

Fix:
BundleInfo info = depUnit . getAttachment ( BUNDLE_INFO_KEY ) ;
Buggy code:
public class AbstractSockJsServiceTests extends AbstractHttpRequestTests { private AbstractSockJsServiceTests . TestSockJsService service ; private WebSocketHandler handler ; @ Override @ Before public void setUp ( ) { } @ Test public void getSockJsPathForGreetingRequest ( ) throws Exception { } @ Test public void getSockJsPathForInfoRequest ( ) throws Exception { } @ Test public void getSockJsPathForTransportRequest ( ) throws Exception { } @ Test public void getSockJsPathForTransportRequestWithConfiguredPrefix ( ) throws Exception { } @ Test public void validateRequest ( ) throws Exception { } @ Test public void handleInfoGet ( ) throws Exception { handleRequest ( "GET" , "//a//info" , OK ) ; assertEquals ( "application//json;charset=UTF-8" , this . servletResponse . getContentType ( ) ) ; assertEquals ( "*" , this . servletResponse . getHeader ( "Access-Control-Allow-Origin" ) ) ; assertEquals ( "true" , this . servletResponse . getHeader ( "Access-Control-Allow-Credentials" ) ) ; assertEquals ( "no-store,<seq2seq4repair_space>no-cache,<seq2seq4repair_space>must-revalidate,<seq2seq4repair_space>max-age=0" , this . servletResponse . getHeader ( "Cache-Control" ) ) ; String body = this . servletResponse . getContentAsString ( ) ; assertEquals ( "{\"entropy\"" , body . substring ( 0 , body . indexOf ( ':' ) ) ) ; <START_BUG> assertEquals ( ",\"origins\":[\"*:*\"],\"cookie_needed\":true,\"websocket\":true}" , body . substring ( body . indexOf ( ',' ) ) ) ; <END_BUG> this . service . setDummySessionCookieEnabled ( false ) ; this . service . setWebSocketsEnabled ( false ) ; handleRequest ( "GET" , "//a//info" , OK ) ; body = this . servletResponse . getContentAsString ( ) ; assertEquals ( ",\"origins\":[\"*:*\"],\"cookie_needed\":false,\"websocket\":false}" , body . substring ( body . indexOf ( ',' ) ) ) ; } @ Test public void handleInfoOptions ( ) throws Exception { } @ Test public void handleIframeRequest ( ) throws Exception { } @ Test public void handleIframeRequestNotModified ( ) throws Exception { } @ Test public void handleRawWebSocketRequest ( ) throws Exception { } private void handleRequest ( String httpMethod , String uri , HttpStatus httpStatus ) throws IOException { } private static class TestSockJsService extends AbstractSockJsService { private String sessionId ; private String transport ; private WebSocketHandler handler ; public TestSockJsService ( TaskScheduler scheduler ) { } @ Override protected void handleRawWebSocketRequest ( ServerHttpRequest request , ServerHttpResponse response , WebSocketHandler handler ) throws IOException { } @ Override protected void handleTransportRequest ( ServerHttpRequest request , ServerHttpResponse response , WebSocketHandler handler , String sessionId , String transport ) throws IOException , SockJsProcessingException { } @ Override protected boolean isValidTransportType ( String transportType ) { } } }

Fix:
assertEquals ( ",\"origins\":[\"*:*\"],\"cookie_needed\":false,\"websocket\":true}" , body . substring ( body . indexOf ( ',' ) ) ) ;
Buggy code:
public class FileSystemUtils { private static final FileSystemUtils INSTANCE = new FileSystemUtils ( ) ; private static final int INIT_PROBLEM = - 1 ; private static final int OTHER = 0 ; private static final int WINDOWS = 1 ; private static final int UNIX = 2 ; private static final int POSIX_UNIX = 3 ; private static final int OS ; private static final String DF ; public FileSystemUtils ( ) { } @ Deprecated public static long freeSpace ( final String path ) throws IOException { } public static long freeSpaceKb ( final String path ) throws IOException { } public static long freeSpaceKb ( final String path , final long timeout ) throws IOException { } public static long freeSpaceKb ( ) throws IOException { } public static long freeSpaceKb ( final long timeout ) throws IOException { } long freeSpaceOS ( final String path , final int os , final boolean kb , final long timeout ) throws IOException { if ( path == null ) { <START_BUG> throw new IllegalArgumentException ( "Path<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>empty" ) ; <END_BUG> } switch ( os ) { case FileSystemUtils . WINDOWS : return kb ? ( freeSpaceWindows ( path , timeout ) ) // ( FileUtils . ONE_KB ) : freeSpaceWindows ( path , timeout ) ; case FileSystemUtils . UNIX : return freeSpaceUnix ( path , kb , false , timeout ) ; case FileSystemUtils . POSIX_UNIX : return freeSpaceUnix ( path , kb , true , timeout ) ; case FileSystemUtils . OTHER : throw new IllegalStateException ( "Unsupported<seq2seq4repair_space>operating<seq2seq4repair_space>system" ) ; default : throw new IllegalStateException ( "Exception<seq2seq4repair_space>caught<seq2seq4repair_space>when<seq2seq4repair_space>determining<seq2seq4repair_space>operating<seq2seq4repair_space>system" ) ; } } long freeSpaceWindows ( String path , final long timeout ) throws IOException { } long parseDir ( final String line , final String path ) throws IOException { } long freeSpaceUnix ( final String path , final boolean kb , final boolean posix , final long timeout ) throws IOException { } long parseBytes ( final String freeSpace , final String path ) throws IOException { } List < String > performCommand ( final String [ ] cmdAttribs , final int max , final long timeout ) throws IOException { } Process openProcess ( final String [ ] cmdAttribs ) throws IOException { } }

Fix:
throw new IllegalArgumentException ( "Path<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ;
Buggy code:
public class FirstPage extends Activity { private AnimationProgressDialog spinner ; public FirstPage ( ) { } @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; setContentView ( activity_first_page ) ; Button button = ( ( Button ) ( findViewById ( button ) ) ) ; spinner = new AnimationProgressDialog ( this , drawable . spinner_xhdpi ) ; button . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { spinner . setCancelable ( true ) ; spinner . show ( ) ; new Thread ( new Runnable ( ) { @ Override public void run ( ) { try { <START_BUG> Thread . sleep ( 4000 ) ; <END_BUG> } catch ( Exception e ) { } spinner . dismiss ( ) ; } } ) . start ( ) ; Intent intent = new Intent ( getApplicationContext ( ) , MapsActivity . class ) ; startActivity ( intent ) ; } } ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } }

Fix:
Thread . sleep ( 8000 ) ;
Buggy code:
public class SetClasspathOperation extends JavaModelOperation { IClasspathEntry [ ] oldResolvedPath ; IClasspathEntry [ ] newResolvedPath ; IClasspathEntry [ ] newRawPath ; boolean canChangeResource ; boolean needCycleCheck ; boolean needValidation ; boolean needSave ; IPath newOutputLocation ; JavaProject project ; public static final IClasspathEntry [ ] ReuseClasspath = new IClasspathEntry [ 0 ] ; public static final IClasspathEntry [ ] UpdateClasspath = new IClasspathEntry [ 0 ] ; public static final IPath ReuseOutputLocation = new Path ( "Reuse<seq2seq4repair_space>Existing<seq2seq4repair_space>Output<seq2seq4repair_space>Location" ) ; public SetClasspathOperation ( JavaProject project , IClasspathEntry [ ] oldResolvedPath , IClasspathEntry [ ] newRawPath , IPath newOutputLocation , boolean canChangeResource , boolean needValidation , boolean needSave ) { } protected void addClasspathDeltas ( IPackageFragmentRoot [ ] roots , int flag , JavaElementDelta delta ) { } protected int classpathContains ( IClasspathEntry [ ] list , IClasspathEntry entry ) { } protected void collectAllSubfolders ( IFolder folder , ArrayList collection ) throws JavaModelException { } protected ArrayList determineAffectedPackageFragments ( IPath location ) throws JavaModelException { } protected void executeOperation ( ) throws JavaModelException { } protected void generateClasspathChangeDeltas ( ) { } private int getSourceAttachmentDeltaFlag ( IPath oldPath , IPath newPath , IPath sourcePath ) { } public boolean isReadOnly ( ) { } protected void saveClasspathIfNecessary ( ) throws JavaModelException { } public String toString ( ) { } private void updateClasspath ( ) throws JavaModelException { } protected void updateAffectedProjects ( IPath prerequisiteProjectPath ) { } protected void updateCycleMarkersIfNecessary ( ) { } protected void updateOutputLocation ( ) throws JavaModelException { } protected void updateProjectReferencesIfNecessary ( ) throws JavaModelException { } public IJavaModelStatus verify ( ) { IJavaModelStatus status = super . verify ( ) ; if ( ! ( status . isOK ( ) ) ) { return status ; } if ( needValidation ) { IClasspathEntry [ ] entries = this . newRawPath ; if ( entries == ( SetClasspathOperation . ReuseClasspath ) ) { try { entries = project . getRawClasspath ( ) ; } catch ( JavaModelException e ) { return e . getJavaModelStatus ( ) ; } } IPath outputLocation = this . newOutputLocation ; if ( outputLocation == ( SetClasspathOperation . ReuseOutputLocation ) ) { try { outputLocation = project . getOutputLocation ( ) ; } catch ( JavaModelException e ) { return e . getJavaModelStatus ( ) ; } } <START_BUG> return JavaConventions . validateClasspath ( project , entries , outputLocation ) ; <END_BUG> } return JavaModelStatus . VERIFIED_OK ; } }

Fix:
return ClasspathEntry . validateClasspath ( project , entries , outputLocation ) ;