nus-yam/ex-repair huggingface dataset:
Buggy code:
public class WSSubsystemAdd extends AbstractBoottimeAddStepHandler { static final WSSubsystemAdd INSTANCE = new WSSubsystemAdd ( ) ; private final ParametersValidator configValidator = new ParametersValidator ( ) ; private WSSubsystemAdd ( ) { } protected void populateModel ( final OperationContext context , final ModelNode operation , final Resource resource ) throws OperationFailedException { } @ Override protected void populateModel ( final ModelNode operation , final ModelNode model ) throws OperationFailedException { } protected void performBoottime ( OperationContext context , ModelNode operation , ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) { } private static ServerConfigImpl createServerConfig ( ModelNode configuration , boolean appclient ) { <START_BUG> final ServerConfigImpl config = ServerConfigImpl . getInstance ( ) ; <END_BUG> try { ModelNode wsdlHost = configuration . require ( Constants . WSDL_HOST ) . resolve ( ) ; config . setWebServiceHost ( wsdlHost . asString ( ) ) ; } catch ( UnknownHostException e ) { throw new RuntimeException ( e ) ; } if ( ! appclient ) { config . setModifySOAPAddress ( configuration . require ( Constants . MODIFY_WSDL_ADDRESS ) . asBoolean ( ) ) ; } if ( configuration . hasDefined ( Constants . WSDL_PORT ) ) { config . setWebServicePort ( configuration . require ( Constants . WSDL_PORT ) . asInt ( ) ) ; } if ( configuration . hasDefined ( Constants . WSDL_SECURE_PORT ) ) { config . setWebServiceSecurePort ( configuration . require ( Constants . WSDL_SECURE_PORT ) . asInt ( ) ) ; } return config ; } }

Fix:
final ServerConfigImpl config = ServerConfigImpl . newInstance ( ) ;
Buggy code:
public class Interval2D implements Serializable { private static final long serialVersionUID = - 1612553911265772407L ; private final Interval1D x ; private final Interval1D y ; public Interval2D ( Interval1D x , Interval1D y ) { } public boolean intersects ( Interval2D that ) { } public boolean contains ( Point2D p ) { } public double area ( ) { } public Interval1D getX ( ) { } public Interval1D getY ( ) { <START_BUG> return this . x ; <END_BUG> } public String toString ( ) { } }

Fix:
return this . y ;
Buggy code:
@ Entity public abstract class MediaItem extends PlaceBookItem { @ JsonIgnore private String path ; private String hash ; MediaItem ( ) { } public MediaItem ( final MediaItem m ) { } public MediaItem ( final User owner , final Geometry geom , final URL sourceURL , final String file ) { } @ Override public void appendConfiguration ( final Document config , final Element root ) { } public String attemptPathFix ( ) { } protected void copyDataToPackage ( ) throws IOException { <START_BUG> final String path = ( ( PropertiesSingleton . get ( this . getClass ( ) . getClassLoader ( ) ) . getProperty ( IDEN_PKG , "" ) ) + "//" ) + ( getPlaceBook ( ) . getKey ( ) ) ; <END_BUG> if ( ( path != null ) && ( ( new File ( path ) . exists ( ) ) || ( new File ( path ) . mkdirs ( ) ) ) ) { final File dataFile = new File ( getPath ( ) ) ; final FileInputStream fis = new FileInputStream ( dataFile ) ; final File to = new File ( ( ( path + "//" ) + ( dataFile . getName ( ) ) ) ) ; log . info ( ( ( ( "Copying<seq2seq4repair_space>file,<seq2seq4repair_space>from=" + ( dataFile . toString ( ) ) ) + ",<seq2seq4repair_space>to=" ) + ( to . toString ( ) ) ) ) ; final FileOutputStream fos = new FileOutputStream ( to ) ; IOUtils . copy ( fis , fos ) ; fis . close ( ) ; fos . close ( ) ; } } @ Override public void deleteItemData ( ) { } public String getPath ( ) { } private File getSavePath ( ) throws IOException { } @ Override public IUpdateableExternal saveUpdatedItem ( ) { } public void setPath ( final String filepath ) { } @ Override public void updateItem ( final IUpdateableExternal item ) { } public String getHash ( ) { } public void writeDataToDisk ( final String name , final InputStream is ) throws IOException { } public boolean RedownloadItem ( ) { } No newline ; at end ; of file ; }

Fix:
final String path = ( ( ( ( PropertiesSingleton . get ( this . getClass ( ) . getClassLoader ( ) ) . getProperty ( IDEN_PKG , "" ) ) + "//" ) + ( getPlaceBook ( ) . getPlaceBookBinder ( ) . getKey ( ) ) ) + "//" ) + ( getPlaceBook ( ) . getKey ( ) ) ;
Buggy code:
public class ChiSquaredDistribution extends AbstractRealDistribution { public static final double DEFAULT_INVERSE_ABSOLUTE_ACCURACY = 1.0E-9 ; private static final long serialVersionUID = - 8352658048349159782L ; private final GammaDistribution gamma ; private final double solverAbsoluteAccuracy ; public ChiSquaredDistribution ( double degreesOfFreedom ) { } public ChiSquaredDistribution ( double degreesOfFreedom , double inverseCumAccuracy ) { } public ChiSquaredDistribution ( RandomGenerator rng , double degreesOfFreedom , double inverseCumAccuracy ) { } public double getDegreesOfFreedom ( ) { <START_BUG> return ( gamma . getAlpha ( ) ) * 2.0 ; <END_BUG> } public double density ( double x ) { } public double cumulativeProbability ( double x ) { } @ Override protected double getSolverAbsoluteAccuracy ( ) { } public double getNumericalMean ( ) { } public double getNumericalVariance ( ) { } public double getSupportLowerBound ( ) { } public double getSupportUpperBound ( ) { } public boolean isSupportLowerBoundInclusive ( ) { } public boolean isSupportUpperBoundInclusive ( ) { } public boolean isSupportConnected ( ) { } }

Fix:
return ( gamma . getShape ( ) ) * 2.0 ;
Buggy code:
public class MainMap extends BasicGameState { private HiveBoy hiveBoy ; private Bee bee ; private BeeBox beeBox ; private TiledMap tiledMap ; private Camera camera ; private ArrayList < AddedTile > addedTiles ; private int timer = 0 ; @ Override public void init ( GameContainer container , StateBasedGame game ) throws SlickException { hiveBoy = new HiveBoy ( 400 , 400 , this ) ; bee = new Bee ( 300 , 300 , this ) ; beeBox = new BeeBox ( 200 , 200 , this ) ; <START_BUG> tiledMap = new TiledMap ( "resources//tilemaps//exp1.tmx" ) ; <END_BUG> camera = new Camera ( container , tiledMap ) ; container . setTargetFrameRate ( 60 ) ; container . setUpdateOnlyWhenVisible ( false ) ; tiledMap . getLayerIndex ( "collision" ) ; addedTiles = new ArrayList < AddedTile > ( ) ; } @ Override public void render ( GameContainer container , StateBasedGame game , Graphics g ) throws SlickException { } @ Override public void update ( GameContainer container , StateBasedGame game , int delta ) throws SlickException { } public TiledMap getTiledMap ( ) { } public ArrayList getAddedTiles ( ) { } @ Override public int getID ( ) { } }

Fix:
tiledMap = new TiledMap ( "resources//tilemaps//testedits.tmx" ) ;
Buggy code:
public interface ErrorHandler extends OptionHandler { <START_BUG> void setLogger ( Stiring loggerName ) ; <END_BUG> void error ( String message , Exception e , int errorCode ) { } void error ( String message ) { } void error ( String message , Exception e , int errorCode , LoggingEvent event ) { } void setAppender ( Appender appender ) { } void setBackupAppender ( Appender appender ) { } }

Fix:
void setLogger ( String loggerName ) ;
Buggy code:
public final class AC implements Externalizable { private final ArrayList < DimConstraint > cList = new ArrayList < DimConstraint > ( 1 ) ; private transient int curIx = 0 ; public AC ( ) { } public final DimConstraint [ ] getConstaints ( ) { } public final void setConstaints ( DimConstraint [ ] constr ) { } public int getCount ( ) { } public final AC count ( int size ) { } public final AC noGrid ( ) { } public final AC noGrid ( int ... indexes ) { } public final AC index ( int i ) { } public final AC fill ( ) { } public final AC fill ( int ... indexes ) { } public final AC sizeGroup ( ) { } public final AC sizeGroup ( String s ) { } public final AC sizeGroup ( String s , int ... indexes ) { } public final AC size ( String s ) { } public final AC size ( String size , int ... indexes ) { } public final AC gap ( ) { } public final AC gap ( String size ) { } public final AC gap ( String size , int ... indexes ) { } public final AC align ( String side ) { } public final AC align ( String side , int ... indexes ) { } public final AC growPrio ( int p ) { } public final AC growPrio ( int p , int ... indexes ) { } public final AC grow ( ) { <START_BUG> return grow ( 1.0F , curIx ) ; <END_BUG> } public final AC grow ( float w ) { } public final AC grow ( float w , int ... indexes ) { } public final AC shrinkPrio ( int p ) { } public final AC shrinkPrio ( int p , int ... indexes ) { } public final AC shrink ( ) { } public final AC shrink ( float w ) { } public final AC shrink ( float w , int ... indexes ) { } public final AC shrinkWeight ( float w ) { } public final AC shrinkWeight ( float w , int ... indexes ) { } private void makeSize ( int sz ) { } private Object readResolve ( ) throws ObjectStreamException { } @ Override public void readExternal ( ObjectInput in ) throws IOException , ClassNotFoundException { } @ Override public void writeExternal ( ObjectOutput out ) throws IOException { } No newline ; at end ; of file ; }

Fix:
return grow ( 100.0F , curIx ) ;
Buggy code:
public class MasterPortfolioWriter implements PortfolioWriter { private PortfolioMaster _portfolioMaster ; private PositionMaster _positionMaster ; private SecurityMaster _securityMaster ; private PortfolioDocument _portfolioDocument ; private ManageablePortfolioNode _currentNode ; public MasterPortfolioWriter ( String portfolioName , ToolContext toolContext ) { } public MasterPortfolioWriter ( String portfolioName , PortfolioMaster portfolioMaster , PositionMaster positionMaster , SecurityMaster securityMaster ) { } @ Override public ManageableSecurity writeSecurity ( ManageableSecurity security ) { } private boolean weakEquals ( ManageableSecurity sec1 , ManageableSecurity sec2 ) { } @ Override public ManageablePosition writePosition ( ManageablePosition position ) { } @ Override public ManageablePortfolio getPortfolio ( ) { } @ Override public ManageablePortfolioNode getCurrentNode ( ) { } @ Override public ManageablePortfolioNode setCurrentNode ( ManageablePortfolioNode node ) { } @ Override public void flush ( ) { } @ Override public void close ( ) { } private PortfolioDocument createOrOpenPortfolio ( String portfolioName ) { PortfolioSearchRequest portSearchRequest = new PortfolioSearchRequest ( ) ; portSearchRequest . setName ( portfolioName ) ; PortfolioSearchResult portSearchResult = _portfolioMaster . search ( portSearchRequest ) ; ManageablePortfolio portfolio = portSearchResult . getFirstPortfolio ( ) ; PortfolioDocument portfolioDoc = portSearchResult . getFirstDocument ( ) ; if ( portfolio == null ) { ManageablePortfolioNode rootNode = new ManageablePortfolioNode ( portfolioName ) ; portfolio = new ManageablePortfolio ( portfolioName , rootNode ) ; portfolioDoc = new PortfolioDocument ( ) ; portfolioDoc . setPortfolio ( portfolio ) ; portfolioDoc = _portfolioMaster . add ( portfolioDoc ) ; } <START_BUG> _currentNode = portfolio . getRootNode ( ) ; <END_BUG> return portfolioDoc ; } }

Fix:
_currentNode = portfolioDoc . getPortfolio ( ) . getRootNode ( ) ;
Buggy code:
public class JavadocReturnStatement extends ReturnStatement { public boolean empty = true ; public JavadocReturnStatement ( int s , int e ) { } public void resolve ( BlockScope scope ) { MethodScope methodScope = scope . methodScope ( ) ; MethodBinding methodBinding = null ; TypeBinding methodType = ( ( methodScope . referenceContext ) instanceof AbstractMethodDeclaration ) ? ( methodBinding = ( ( AbstractMethodDeclaration ) ( methodScope . referenceContext ) ) . binding ) == null ? null : methodBinding . returnType : TypeBinding . VOID ; if ( ( methodType == null ) || ( methodType == ( TypeBinding . VOID ) ) ) { scope . problemReporter ( ) . javadocUnexpectedTag ( this . sourceStart , this . sourceEnd ) ; } else if ( this . empty ) { <START_BUG> scope . problemReporter ( ) . javadocEmptyReturnTag ( this . sourceStart , this . sourceEnd ) ; <END_BUG> } } public StringBuffer printStatement ( int tab , StringBuffer output ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } public void traverse ( ASTVisitor visitor , ClassScope scope ) { } }

Fix:
scope . problemReporter ( ) . javadocEmptyReturnTag ( this . sourceStart , this . sourceEnd , scope . getDeclarationModifiers ( ) ) ;
Buggy code:
public class Utils { public static Context ctx ; public static void syncUserIf ( Context c , String uid ) { } public static void syncEvent ( Context c , String eventid , final int status , final boolean last ) { } public static void syncMessage ( Context c , Message message , boolean last ) { } public static void syncWithServer ( Context c ) { } public static boolean showToastIfError ( Context con , ResponseHelper result ) { } public static void makeToast ( Context con , String message ) { } public static String makeURLParams ( List < NameValuePair > values ) { } public static ResponseHelper POST ( String url ) { } public static ResponseHelper POSTJson ( String url , String message ) { } public static ResponseHelper GET ( String url ) { } public static class PostAsyncTask extends AsyncTask < String , Void , ResponseHelper > { public PostAsyncTask ( ) { } @ Override protected ResponseHelper doInBackground ( String ... params ) { } } public static class PostAsyncTaskJson extends AsyncTask < String , Void , ResponseHelper > { private String url ; public PostAsyncTaskJson ( String u ) { } @ Override protected ResponseHelper doInBackground ( String ... params ) { } } public static class GetAsyncTask extends AsyncTask < String , Void , ResponseHelper > { public GetAsyncTask ( ) { } @ Override protected ResponseHelper doInBackground ( String ... params ) { } } public static class LoadImage extends AsyncTask < String , String , Bitmap > { @ Override protected Bitmap doInBackground ( String ... args ) { } } private static String convertInputStreamToString ( InputStream inputStream ) throws IOException { } public static double distance ( double lat_a , double lng_a , double lat_b , double lng_b ) { } public static void authenticate ( final FragmentActivity activity , final String accessToken ) { } private static void onLoginSuccess ( Activity activity , String accessToken ) { SharedPreferences sharedPref = activity . getPreferences ( MODE_PRIVATE ) ; SharedPreferences . Editor editor = sharedPref . edit ( ) ; editor . putString ( "accessToken" , accessToken ) ; editor . commit ( ) ; <START_BUG> Intent intent = new Intent ( Utils . ctx , MainActivity . class ) ; <END_BUG> activity . startActivity ( intent ) ; activity . finish ( ) ; } }

Fix:
Intent intent = new Intent ( activity , MainActivity . class ) ;
Buggy code:
class MessagingSubsystemAdd extends AbstractBoottimeAddStepHandler { public static final MessagingSubsystemAdd INSTANCE = new MessagingSubsystemAdd ( ) ; private MessagingSubsystemAdd ( ) { } @ Override protected void populateModel ( ModelNode operation , ModelNode model ) throws OperationFailedException { } @ Override protected void performBoottime ( final OperationContext context , ModelNode operation , final ModelNode model , ServiceVerificationHandler verificationHandler , List < ServiceController < ? > > newControllers ) throws OperationFailedException { context . addStep ( new AbstractDeploymentChainStep ( ) { @ Override protected void execute ( DeploymentProcessorTarget processorTarget ) { processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , PARSE , PARSE_EE_ANNOTATIONS , new MessagingJMSDefinitionAnnotationParser ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , PARSE , PARSE_MESSAGING_XML_RESOURCES , new MessagingXmlParsingDeploymentUnitProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , DEPENDENCIES , DEPENDENCIES_JMS , new MessagingDependencyProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , POST_MODULE , POST_MODULE_JMS_CDI_EXTENSIONS , new CDIDeploymentProcessor ( ) ) ; <START_BUG> processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , POST_MODULE , POST_MODULE_EJB_REF , new MessagingJMSDefinitionDeploymentProcessor ( ) ) ; <END_BUG> processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , INSTALL , INSTALL_JMS_BINDINGS , new MessagingJndiBindingProcessor ( ) ) ; processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , INSTALL , INSTALL_MESSAGING_XML_RESOURCES , new MessagingXmlInstallDeploymentUnitProcessor ( ) ) ; } } , RUNTIME ) ; } }

Fix:
processorTarget . addDeploymentProcessor ( SUBSYSTEM_NAME , POST_MODULE , POST_MODULE_JMS_DEFINITION_DEPLOYMENT , new MessagingJMSDefinitionDeploymentProcessor ( ) ) ;
Buggy code:
public class WorkingSetConfigurationBlock { private IWorkingSet [ ] getSelectedWorkingSet ( IStructuredSelection selection ) { } private boolean verifyWorkingSet ( IWorkingSet workingSetCandidate ) { <START_BUG> return ( ! ( workingSetCandidate . isAggregateWorkingSet ( ) ) ) && ( ( Arrays . binarySearch ( workingSetTypeIds , workingSetCandidate . getId ( ) ) ) != ( - 1 ) ) ; <END_BUG> } public static IWorkingSet [ ] filter ( IWorkingSet [ ] workingSets , String [ ] workingSetIds ) { } private static boolean accept ( IWorkingSet set , String [ ] workingSetIDs ) { } private static final IWorkingSet [ ] EMPTY_WORKING_SET_ARRAY = new IWorkingSet [ 0 ] ; private static final String WORKINGSET_SELECTION_HISTORY = "workingset_selection_history" ; private static final int MAX_HISTORY_SIZE = 5 ; private Label workingSetLabel ; private Combo workingSetCombo ; private Button selectButton ; private IWorkingSet [ ] selectedWorkingSets ; private Button enableButton ; private ArrayList selectionHistory ; private final IDialogSettings dialogSettings ; private final String [ ] workingSetTypeIds ; public WorkingSetConfigurationBlock ( String [ ] workingSetIds , IDialogSettings settings ) { } public void setSelection ( IStructuredSelection selection ) { } public IWorkingSet [ ] getSelectedWorkingSets ( ) { } public void createContent ( final Composite parent ) { } private void updateEnableState ( boolean enabled ) { } private void updateWorkingSetSelection ( ) { } private String [ ] getHistoryEntries ( ) { } private void historyInsert ( String entry ) { } private int historyIndex ( String entry ) { } private void updateSelectedWorkingSets ( ) { } private void storeSelectionHistory ( IDialogSettings settings ) { } private ArrayList loadSelectionHistory ( IDialogSettings settings , String [ ] workingSetIds ) { } private GridData setButtonLayoutData ( Button button ) { } }

Fix:
return ( ! ( workingSetCandidate . isAggregateWorkingSet ( ) ) ) && ( ( Arrays . binarySearch ( workingSetTypeIds , workingSetCandidate . getId ( ) ) ) >= 0 ) ;
Buggy code:
public class TreeItem extends Item { Tree parent ; Image [ ] images ; int itemCount ; int stringList ; int imageList ; int foregroundList ; int backgroundList ; int fontList ; int checkState ; boolean checked ; boolean grayed ; boolean cached ; boolean ignoreNotify ; public TreeItem ( Tree parent , int style ) { } public TreeItem ( Tree parent , int style , int index ) { } public TreeItem ( TreeItem parentItem , int style ) { } public TreeItem ( TreeItem parentItem , int style , int index ) { } TreeItem ( Tree parent , TreeItem parentItem , int style , int index , int handle ) { } static Tree checkNull ( Tree tree ) { } static TreeItem checkNull ( TreeItem item ) { } protected void checkSubclass ( ) { } void clear ( ) { } public void clear ( int index , boolean all ) { } public void clearAll ( boolean all ) { } void columnAdded ( int index ) { } void columnRemoved ( int index ) { } void createHandle ( ) { } void deregister ( ) { } void destroyWidget ( ) { parent . destroyItem ( this ) ; <START_BUG> super . destroyWidget ( ) ; <END_BUG> } int findContentPresenter ( int element , int column ) { } int findPart ( int column , String part ) { } public Color getBackground ( ) { } public Color getBackground ( int index ) { } public Rectangle getBounds ( ) { } public Rectangle getBounds ( int index ) { } public boolean getChecked ( ) { } public boolean getExpanded ( ) { } public Font getFont ( ) { } public Font getFont ( int index ) { } public Color getForeground ( ) { } public Color getForeground ( int index ) { } public boolean getGrayed ( ) { } public TreeItem getItem ( int index ) { } public int getItemCount ( ) { } public TreeItem [ ] getItems ( ) { } public Image getImage ( ) { } public Image getImage ( int index ) { } public Rectangle getImageBounds ( int index ) { } public Tree getParent ( ) { } public TreeItem getParentItem ( ) { } public String getText ( ) { } public String getText ( int index ) { } Control getWidgetControl ( ) { } public int indexOf ( TreeItem item ) { } void register ( ) { } void releaseChildren ( boolean destroy ) { } void releaseHandle ( ) { } void releaseWidget ( ) { } public void removeAll ( ) { } public void setBackground ( Color color ) { } public void setBackground ( int index , Color color ) { } public void setChecked ( boolean checked ) { } public void setExpanded ( boolean expanded ) { } public void setFont ( Font font ) { } public void setFont ( int index , Font font ) { } public void setForeground ( Color color ) { } public void setForeground ( int index , Color color ) { } public void setGrayed ( boolean grayed ) { } public void setImage ( Image [ ] images ) { } public void setImage ( int index , Image image ) { } public void setImage ( Image image ) { } public void setItemCount ( int count ) { } public void setText ( String [ ] strings ) { } public void setText ( int index , String string ) { } public void setText ( String string ) { } void updateCheckState ( boolean notify ) { } }

Fix:
releaseHandle ( ) ;
Buggy code:
public class ServerDeploymentHelper { private final ServerDeploymentManager deploymentManager ; public ServerDeploymentHelper ( ModelControllerClient client ) { } public ServerDeploymentHelper ( ServerDeploymentManager deploymentManager ) { } public String deploy ( String runtimeName , InputStream input ) throws ServerDeploymentHelper . ServerDeploymentException { } public String replace ( String runtimeName , String replaceName , InputStream input , boolean removeUndeployed ) throws ServerDeploymentHelper . ServerDeploymentException { } public void undeploy ( String runtimeName ) throws ServerDeploymentHelper . ServerDeploymentException { ServerDeploymentActionResult actionResult ; try { DeploymentPlanBuilder builder = deploymentManager . newDeploymentPlan ( ) ; <START_BUG> builder = builder . undeploy ( runtimeName ) . remove ( runtimeName ) ; <END_BUG> DeploymentPlan plan = builder . build ( ) ; DeploymentAction action = builder . getLastAction ( ) ; Future < ServerDeploymentPlanResult > future = deploymentManager . execute ( plan ) ; ServerDeploymentPlanResult planResult = future . get ( ) ; actionResult = planResult . getDeploymentActionResult ( action . getId ( ) ) ; } catch ( Exception ex ) { throw new ServerDeploymentHelper . ServerDeploymentException ( ex ) ; } if ( ( actionResult . getDeploymentException ( ) ) != null ) throw new ServerDeploymentHelper . ServerDeploymentException ( actionResult ) ; } public static class ServerDeploymentException extends Exception { private static final long serialVersionUID = 1L ; private final ServerDeploymentActionResult actionResult ; private ServerDeploymentException ( ServerDeploymentActionResult actionResult ) { } private ServerDeploymentException ( Throwable cause ) { } public ServerDeploymentActionResult getActionResult ( ) { } } }

Fix:
builder = builder . undeploy ( runtimeName ) . andRemoveUndeployed ( ) ;
Buggy code:
public class BDDAndroidActivity extends Activity { private static final int MENU_EASY = 1 ; private static final int MENU_HARD = 2 ; private static final int MENU_MEDIUM = 3 ; private static final int MENU_PAUSE = 4 ; private static final int MENU_RESUME = 5 ; private static final int MENU_START = 6 ; private static final int MENU_STOP = 7 ; private LunarThread mLunarThread ; private LunarView mLunarView ; @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override <START_BUG> public boolean onOptionsItemSelected ( final MenuItem item ) { <END_BUG> switch ( item . getItemId ( ) ) { case BDDAndroidActivity . MENU_START : mLunarThread . doStart ( ) ; return true ; case BDDAndroidActivity . MENU_STOP : mLunarThread . setState ( STATE_LOSE , getText ( message_stopped ) ) ; return true ; case BDDAndroidActivity . MENU_PAUSE : mLunarThread . pause ( ) ; return true ; case BDDAndroidActivity . MENU_RESUME : mLunarThread . unpause ( ) ; return true ; case BDDAndroidActivity . MENU_EASY : mLunarThread . setDifficulty ( DIFFICULTY_EASY ) ; return true ; case BDDAndroidActivity . MENU_MEDIUM : mLunarThread . setDifficulty ( DIFFICULTY_MEDIUM ) ; return true ; case BDDAndroidActivity . MENU_HARD : mLunarThread . setDifficulty ( DIFFICULTY_HARD ) ; return true ; default : break ; } return false ; } @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override protected void onPause ( ) { } @ Override protected void onSaveInstanceState ( Bundle outState ) { } No newline ; at end ; of file ; }

Fix:
public boolean onOptionsItemSelected ( MenuItem item ) {
Buggy code:
public interface BlobAccessor { BlobEntry newBlob ( String fileName ) { } <START_BUG> BlobEntry newBlob ( String fileName , byte [ ] data , String mimeType , String cacheControl ) ; <END_BUG> List < String > getNameList ( String prefix ) throws IOException { } BlobEntry getBlob ( String fileName ) throws IOException { } void createOrUpdateBlob ( BlobEntry blobEntry ) throws IOException { } }

Fix:
BlobEntry newBlob ( String fileName , byte [ ] data , String mimeType ) ;
Buggy code:
public class SizeSelector extends BaseExtendSelector { private static final int KILO = 1000 ; private static final int KIBI = 1024 ; private static final int KIBI_POS = 4 ; private static final int MEGA = 1000000 ; private static final int MEGA_POS = 9 ; private static final int MEBI = 1048576 ; private static final int MEBI_POS = 13 ; private static final long GIGA = 1000000000L ; private static final int GIGA_POS = 18 ; private static final long GIBI = 1073741824L ; private static final int GIBI_POS = 22 ; private static final long TERA = 1000000000000L ; private static final int TERA_POS = 27 ; private static final long TEBI = 1099511627776L ; private static final int TEBI_POS = 31 ; private static final int END_POS = 36 ; public static final String SIZE_KEY = "value" ; public static final String UNITS_KEY = "units" ; public static final String WHEN_KEY = "when" ; private long size = - 1 ; private long multiplier = 1 ; private long sizelimit = - 1 ; private Comparison when = Comparison . EQUAL ; public SizeSelector ( ) { } public String toString ( ) { <START_BUG> StringBuffer buf = new StringBuffer ( "{sizeselector<seq2seq4repair_space>value:<seq2seq4repair_space>" ) ; <END_BUG> buf . append ( sizelimit ) ; buf . append ( "compare:<seq2seq4repair_space>" ) . append ( when . getValue ( ) ) ; buf . append ( "}" ) ; return buf . toString ( ) ; } public void setValue ( long size ) { } public void setUnits ( SizeSelector . ByteUnits units ) { } public void setWhen ( SizeSelector . SizeComparisons when ) { } public void setParameters ( Parameter [ ] parameters ) { } public void verifySettings ( ) { } public boolean isSelected ( File basedir , String filename , File file ) { } public static class ByteUnits extends EnumeratedAttribute { public String [ ] getValues ( ) { } } public static class SizeComparisons extends Comparison { } }

Fix:
StringBuilder buf = new StringBuilder ( "{sizeselector<seq2seq4repair_space>value:<seq2seq4repair_space>" ) ;
Buggy code:
public class Activator implements BundleActivator , BundleListener , ServiceTrackerCustomizer < HttpService , HttpService > { private static final Logger LOGGER = LoggerFactory . getLogger ( Activator . class ) ; public static final String BUNDLE_HEADER__MOBILE_RESOURCES = "lunifera-mobile-resources" ; public static final String BUNDLE_ID = "org.lunifera.ecview.servlet.mobile" ; private static BundleContext context ; private static Activator plugin ; static BundleContext getContext ( ) { } public static Activator getDefault ( ) { } private ServiceTracker < HttpService , HttpService > tracker ; private HttpService httpService ; private ResourceProvider resourceProvider ; private ServiceTracker < IMobileUiParticipant , IMobileUiParticipant > participantTracker ; public void start ( BundleContext bundleContext ) throws Exception { } private static Filter createFilter ( BundleContext ctx ) { <START_BUG> String filter = String . format ( "(&(%s=%s)(%s=%s))" , Constants . OBJECTCLASS , HttpService . class . getName ( ) , PROP_SERVICE_TYPE , SERVICE_TYPE__APPLICATION ) ; <END_BUG> try { return ctx . createFilter ( filter ) ; } catch ( InvalidSyntaxException e ) { Activator . LOGGER . error ( "{}" , e ) ; } return null ; } @ Override public HttpService addingService ( ServiceReference < HttpService > reference ) { } @ Override public void modifiedService ( ServiceReference < HttpService > reference , HttpService service ) { } @ Override public void removedService ( ServiceReference < HttpService > reference , HttpService service ) { } protected void handleStartedBundles ( BundleContext context ) { } protected boolean isValidBundle ( Bundle bundle ) { } @ Override public void bundleChanged ( BundleEvent event ) { } public void stop ( BundleContext bundleContext ) throws Exception { } public IMobileUiParticipant getParticipant ( ) { } }

Fix:
String filter = String . format ( "(&(%s=%s)(%s=%s))" , Constants . OBJECTCLASS , HttpService . class . getName ( ) , PROP_SERVICE_TYPE , SERVICE_TYPE__MOBILE ) ;
Buggy code:
public class Version { private Version ( ) { } public static String id ( ) { <START_BUG> return "4.5-SNAPSHOT-20070720-1711" ; <END_BUG> } public static void main ( String [ ] args ) { } }

Fix:
return "4.5-SNAPSHOT-20070816-1619" ;
Buggy code:
public class PackageFragment extends Openable implements IPackageFragment , SuffixConstants { protected static final IClassFile [ ] NO_CLASSFILES = new IClassFile [ ] { } ; protected static final ICompilationUnit [ ] NO_COMPILATION_UNITS = new ICompilationUnit [ ] { } ; protected PackageFragment ( PackageFragmentRoot root , String name ) { } protected boolean buildStructure ( OpenableElementInfo info , IProgressMonitor pm , Map newElements , IResource underlyingResource ) throws JavaModelException { } public boolean containsJavaResources ( ) throws JavaModelException { } public void copy ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public ICompilationUnit createCompilationUnit ( String cuName , String contents , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected Object createElementInfo ( ) { } public void delete ( boolean force , IProgressMonitor monitor ) throws JavaModelException { } public boolean equals ( Object o ) { } public IClassFile getClassFile ( String classFileName ) { } public IClassFile [ ] getClassFiles ( ) throws JavaModelException { } public ICompilationUnit getCompilationUnit ( String cuName ) { } public ICompilationUnit [ ] getCompilationUnits ( ) throws JavaModelException { } public ICompilationUnit [ ] getCompilationUnits ( WorkingCopyOwner owner ) { } public int getElementType ( ) { } public IJavaElement getHandleFromMemento ( String token , MementoTokenizer memento , WorkingCopyOwner owner ) { } protected char getHandleMementoDelimiter ( ) { } public int getKind ( ) throws JavaModelException { } public Object [ ] getNonJavaResources ( ) throws JavaModelException { } public IPath getPath ( ) { } public IResource getResource ( ) { } public IResource getUnderlyingResource ( ) throws JavaModelException { } public boolean hasChildren ( ) throws JavaModelException { } public boolean hasSubpackages ( ) throws JavaModelException { } public boolean isDefaultPackage ( ) { } public void move ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } public void rename ( String newName , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected void toStringChildren ( int tab , StringBuffer buffer , Object info ) { } protected void toStringInfo ( int tab , StringBuffer buffer , Object info ) { buffer . append ( this . tabString ( tab ) ) ; if ( ( getElementName ( ) . length ( ) ) == 0 ) { buffer . append ( "<default>" ) ; } else { <START_BUG> buffer . append ( getElementName ( ) ) ; <END_BUG> } if ( info == null ) { buffer . append ( "<seq2seq4repair_space>(not<seq2seq4repair_space>open)" ) ; } else { if ( tab > 0 ) { buffer . append ( "<seq2seq4repair_space>(...)" ) ; } } } }

Fix:
toStringName ( buffer ) ;
Buggy code:
public class SelectionOnFieldReference extends FieldReference { public SelectionOnFieldReference ( char [ ] source , long pos ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding resolveType ( BlockScope scope ) { super . resolveType ( scope ) ; if ( ( ( binding ) == null ) || ( ! ( ( ( ( ( binding . isValidBinding ( ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . NotVisible ) ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . InheritedNameHidesEnclosingName ) ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . NonStaticReferenceInConstructorInvocation ) ) ) || ( ( binding . problemId ( ) ) == ( ProblemReasons . NonStaticReferenceInStaticContext ) ) ) ) ) throw new SelectionNodeFound ( ) ; else <START_BUG> throw new SelectionNodeFound ( binding ) ; <END_BUG> } }

Fix:
throw new SelectionNodeFound ( this , binding ) ;
Buggy code:
public class CamelJdbcStoreBolt extends AmConfigurationBolt { private static final long serialVersionUID = - 668373233969623288L ; private static final Logger logger = LoggerFactory . getLogger ( CamelJdbcStoreBolt . class ) ; private String endpointUri = "direct:CamelJdbcBolt" ; private String contextUri = "camel-context_jdbc.xml" ; protected AbstractMessageConverter converter ; private transient ProducerTemplate producerTemplate ; public CamelJdbcStoreBolt ( ) { } @ SuppressWarnings ( "rawtypes" ) @ Override public void prepare ( Map stormConf , TopologyContext context , OutputCollector collector ) { } @ Override @ SuppressWarnings ( "unchecked" ) public void onMessage ( StreamMessage message ) { String endopointUri = getEndpointUri ( ) ; <START_BUG> Map < String , Object > resultMap = null ; <END_BUG> try { resultMap = this . converter . toMap ( message ) ; } catch ( ConvertFailException ex ) { String logFormat = "Fail<seq2seq4repair_space>convert<seq2seq4repair_space>to<seq2seq4repair_space>jdbc<seq2seq4repair_space>record.<seq2seq4repair_space>Dispose<seq2seq4repair_space>received<seq2seq4repair_space>message.<seq2seq4repair_space>:<seq2seq4repair_space>Message={0}" ; CamelJdbcStoreBolt . logger . warn ( MessageFormat . format ( logFormat , message ) , ex ) ; ack ( ) ; return ; } List < Object > valueList = Lists . newArrayList ( ) ; valueList . add ( resultMap . get ( "messageId" ) ) ; valueList . add ( resultMap . get ( "timestamp" ) ) ; valueList . add ( resultMap . get ( "source" ) ) ; List < String > bodyList = ( ( List < String > ) ( resultMap . get ( "body" ) ) ) ; valueList . addAll ( bodyList ) ; insert ( endopointUri , valueList ) ; ack ( ) ; } @ Override public void declareOutputFields ( OutputFieldsDeclarer declarer ) { } protected void insert ( String endpointUri , Collection < Object > values ) { } public void setApplicationContextUri ( String applicationContextUri ) { } protected String getEndpointUri ( ) { } public void setEndpointUri ( String endpointUri ) { } public void setConverter ( AbstractMessageConverter converter ) { } }

Fix:
Map < String , Object > resultMap ;
Buggy code:
public class QuestionsRunnable extends PostsRunnable < Question > { public QuestionsRunnable ( Context context , PostsHandler < Question > handler , List < Question > listOfPosts , Map < String , Bitmap > userIcons ) { } public void run ( ) { try { JSONObject postsJSON = _forrst . postsList ( "question" , null ) ; JSONArray postsJSONArray = ( ( JSONArray ) ( postsJSON . get ( "posts" ) ) ) ; for ( int count = 0 ; count < ( postsJSONArray . length ( ) ) ; count ++ ) { JSONObject json = postsJSONArray . getJSONObject ( count ) ; Map < String , String > properties = new HashMap < String , String > ( ) ; properties . put ( "id" , json . getString ( "id" ) ) ; properties . put ( "created_at" , getPostDate ( json ) ) ; properties . put ( "name" , json . getJSONObject ( "user" ) . getString ( "name" ) ) ; properties . put ( "title" , json . getString ( "title" ) ) ; properties . put ( "url" , json . getString ( "url" ) ) ; properties . put ( "content" , json . getString ( "content" ) ) ; properties . put ( "description" , json . getString ( "description" ) ) ; properties . put ( "view_count" , Integer . toString ( json . getInt ( "view_count" ) ) ) ; properties . put ( "like_count" , json . getString ( "like_count" ) ) ; properties . put ( "comment_count" , json . getString ( "comment_count" ) ) ; <START_BUG> properties . put ( "user_photos_thumb_url" , json . getJSONObject ( "user" ) . getJSONObject ( "photos" ) . getString ( "thumb_url" ) ) ; <END_BUG> Question question = new Question ( properties ) ; _listOfPosts . add ( question ) ; fetchUserIcon ( question ) ; } notifyHandler ( ) ; } catch ( JSONException e ) { throw new RuntimeException ( "Error<seq2seq4repair_space>fetching<seq2seq4repair_space>question<seq2seq4repair_space>from<seq2seq4repair_space>Forrst" , e ) ; } } No newline ; at end ; of file ; }

Fix:
properties . put ( "user_photos_thumb_url" , json . getJSONObject ( "user" ) . getJSONObject ( "photos" ) . getString ( "medium_url" ) ) ;
Buggy code:
public class DataSet extends ArrayList < DataEntry > { public float getMax ( ) { } public float getMin ( ) { } public float getSum ( ) { } public List < Float > getMajorPoints ( ) { List < Float > points = new ArrayList < > ( ) ; float diff = ( getMax ( ) ) - ( getMin ( ) ) ; float div = 10000000 ; while ( div > diff ) div //= 10 ; <START_BUG> for ( float i = 0 ; i < ( div * 10 ) ; i += div // 2 ) <END_BUG> points . add ( i ) ; return points ; } }

Fix:
for ( float i = 0 ; i <= ( ( getMax ( ) ) * 10 ) ; i += div // 2 )
Buggy code:
public class GroupServiceInstaller implements org . wildfly . clustering . spi . GroupServiceInstaller { private final Logger logger = Logger . getLogger ( this . getClass ( ) ) ; private final GroupServiceBuilder < Group > builder ; protected GroupServiceInstaller ( GroupServiceBuilder < Group > builder ) { } private static BindInfo createBinding ( String group ) { } @ Override public Collection < ServiceName > getServiceNames ( String group ) { } @ Override public void install ( ServiceTarget target , String group , ModuleIdentifier module ) { ServiceName name = GROUP . getServiceName ( group ) ; ContextNames . BindInfo bindInfo = GroupServiceInstaller . createBinding ( group ) ; this . logger . debugf ( "Installing<seq2seq4repair_space>%s<seq2seq4repair_space>service,<seq2seq4repair_space>bound<seq2seq4repair_space>to<seq2seq4repair_space>" , name . getCanonicalName ( ) , bindInfo . getAbsoluteJndiName ( ) ) ; this . builder . build ( target , name , group , module ) . setInitialMode ( ON_DEMAND ) . install ( ) ; <START_BUG> new org . jboss . as . clustering . naming . BinderServiceBuilder ( target ) . build ( bindInfo , name , Group . class ) . install ( ) ; <END_BUG> } }

Fix:
new org . jboss . as . clustering . naming . BinderServiceBuilder ( bindInfo , name , Group . class ) . build ( target ) . install ( ) ;
Buggy code:
public final class ThreadFactoryRemove extends AbstractThreadsSubsystemUpdate < Void > { private static final long serialVersionUID = - 6232099966839106128L ; private final String name ; public ThreadFactoryRemove ( final String name ) { } public ThreadFactoryAdd getCompensatingUpdate ( final ThreadsSubsystemElement original ) { } protected < P > void applyUpdate ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > handler , final P param ) { <START_BUG> final ServiceController < ? > controller = updateContext . getServiceContainer ( ) . getService ( ThreadsServices . threadFactoryName ( name ) ) ; <END_BUG> if ( controller == null ) { handler . handleSuccess ( null , param ) ; } else { controller . addListener ( new UpdateResultHandler . ServiceRemoveListener < P > ( handler , param ) ) ; controller . setMode ( REMOVE ) ; } } protected void applyUpdate ( final ThreadsSubsystemElement element ) throws UpdateFailedException { } public String getName ( ) { } }

Fix:
final ServiceController < ? > controller = updateContext . getServiceRegistry ( ) . getService ( ThreadsServices . threadFactoryName ( name ) ) ;
Buggy code:
public class WicketMessageResolver implements IComponentResolver { private static final Logger log = LoggerFactory . getLogger ( WicketMessageResolver . class ) ; private static final long serialVersionUID = 1L ; public boolean resolve ( final MarkupContainer container , final MarkupStream markupStream , final ComponentTag tag ) { if ( tag instanceof WicketTag ) { WicketTag wtag = ( ( WicketTag ) ( tag ) ) ; if ( wtag . isMessageTag ( ) ) { String messageKey = wtag . getAttributes ( ) . getString ( "key" ) ; if ( ( messageKey == null ) || ( ( messageKey . trim ( ) . length ( ) ) == 0 ) ) { throw new MarkupException ( "Wrong<seq2seq4repair_space>format<seq2seq4repair_space>of<seq2seq4repair_space><wicket:message<seq2seq4repair_space>key='xxx'>:<seq2seq4repair_space>attribute<seq2seq4repair_space>'key'<seq2seq4repair_space>is<seq2seq4repair_space>missing" ) ; } final String value = container . getApplication ( ) . getResourceSettings ( ) . getLocalizer ( ) . getString ( messageKey , container , "" ) ; final String id = "_message_" + ( container . getPage ( ) . getAutoIndex ( ) ) ; Component component = null ; if ( ( value != null ) && ( ( value . trim ( ) . length ( ) ) > 0 ) ) { component = new WicketMessageResolver . MyLabel ( id , value ) ; } else { WicketMessageResolver . log . info ( ( "No<seq2seq4repair_space>value<seq2seq4repair_space>found<seq2seq4repair_space>for<seq2seq4repair_space>message<seq2seq4repair_space>key:<seq2seq4repair_space>" + messageKey ) ) ; component = new WebMarkupContainer ( id ) ; } component . setRenderBodyOnly ( container . getApplication ( ) . getMarkupSettings ( ) . getStripWicketTags ( ) ) ; <START_BUG> container . autoAdd ( component ) ; <END_BUG> return true ; } } return false ; } public static class MyLabel extends Label { private static final long serialVersionUID = 1L ; public MyLabel ( final String id , final String value ) { } protected void onComponentTag ( ComponentTag tag ) { } } }

Fix:
container . autoAdd ( component , markupStream ) ;
Buggy code:
public class AnswerListFragment extends Fragment { private Activity activity ; private QuestionDetail mainActivity ; private static List < Answer > answerList = new ArrayList < Answer > ( ) ; public ListView list ; private View fragmentView ; private RecyclerView rv ; private LinearLayoutManager llm ; private AnswersListRecycleViewAdapter answerAdapter ; public void setAnswerList ( JSONArray answers ) { } public static AnswerListFragment newInstance ( JSONArray answers ) { } public static AnswerListFragment newInstance ( ArrayList < Answer > answerList ) { } public void onAttach ( Activity activity ) { } @ Override public void onViewCreated ( View view , Bundle savedInstanceState ) { } @ Override public void onCreate ( Bundle savedInstanceState ) { } @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { fragmentView = inflater . inflate ( fragment_answer_list , container , false ) ; rv = ( ( RecyclerView ) ( fragmentView . findViewById ( answersList ) ) ) ; rv . setHasFixedSize ( true ) ; answerAdapter = new AnswersListRecycleViewAdapter ( AnswerListFragment . answerList , getActivity ( ) ) ; int orientation ; if ( ( getResources ( ) . getConfiguration ( ) . orientation ) == ( Configuration . ORIENTATION_PORTRAIT ) ) { orientation = LinearLayout . HORIZONTAL ; } else { orientation = LinearLayout . VERTICAL ; } if ( ( llm ) == null ) { <START_BUG> llm = new org . solovyev . android . views . llm . LinearLayoutManager ( getActivity ( ) . getApplicationContext ( ) , orientation , true ) ; <END_BUG> rv . setLayoutManager ( llm ) ; rv . addItemDecoration ( new com . vsokoltsov . stackqa . util . SimpleDividerItemDecoration ( getActivity ( ) . getBaseContext ( ) ) ) ; rv . setAdapter ( answerAdapter ) ; answerAdapter . notifyDataSetChanged ( ) ; } else { llm . setOrientation ( orientation ) ; } return fragmentView ; } }

Fix:
llm = new org . solovyev . android . views . llm . LinearLayoutManager ( getActivity ( ) . getApplicationContext ( ) , 1 , true ) ;
Buggy code:
public final class PresentablePartFolder implements IPresentablePartList { private AbstractTabFolder folder ; private IPresentablePart current ; private Control contentProxy ; private static PartInfo tempPartInfo = new PartInfo ( ) ; private ControlListener contentListener = new ControlListener ( ) { public void controlMoved ( ControlEvent e ) { } public void controlResized ( ControlEvent e ) { } } ; private ShellListener shellListener = new ShellAdapter ( ) { public void shellActivated ( ShellEvent e ) { } public void shellDeactivated ( ShellEvent e ) { } } ; private IPropertyListener childPropertyChangeListener = new IPropertyListener ( ) { public void propertyChanged ( Object source , int property ) { } } ; private DisposeListener tabDisposeListener = new DisposeListener ( ) { public void widgetDisposed ( DisposeEvent e ) { } } ; private List partList = new ArrayList ( 4 ) ; public PresentablePartFolder ( AbstractTabFolder folder ) { } private void layoutContent ( ) { } protected void disposed ( ) { } public IPresentablePart [ ] getPartList ( ) { } public void insert ( IPresentablePart part , int idx ) { } public void remove ( IPresentablePart toRemove ) { } private void internalRemove ( IPresentablePart toRemove ) { } public void move ( IPresentablePart part , int newIndex ) { } public int size ( ) { } public void setBounds ( Rectangle bounds ) { } public void select ( IPresentablePart toSelect ) { } private void setToolbar ( Control newToolbar ) { } private boolean isVisible = true ; private void childPropertyChanged ( IPresentablePart part , int property ) { } protected void initTab ( AbstractTabItem item , IPresentablePart part ) { } public boolean isDisposed ( ) { } public IPresentablePart getPartForTab ( AbstractTabItem tab ) { } public AbstractTabItem getTab ( IPresentablePart part ) { } public int indexOf ( IPresentablePart part ) { } public AbstractTabFolder getTabFolder ( ) { } public void setVisible ( boolean isVisible ) { this . isVisible = isVisible ; <START_BUG> getTabFolder ( ) . getControl ( ) . setVisible ( isVisible ) ; <END_BUG> if ( isVisible ) { layout ( true ) ; } } public void layout ( boolean changed ) { } public IPresentablePart getCurrent ( ) { } }

Fix:
getTabFolder ( ) . setVisible ( isVisible ) ;