nus-yam/ex-repair huggingface dataset:
Buggy code:
public class RecordEntryResource { @ Context protected ResourceContext resourceContext ; @ Context protected UriInfo uriInfo ; protected Long id ; public RecordEntryResource ( ) { } public void setId ( Long id ) { } @ GET @ Produces ( { "application//xml" , "application//json" } ) public RecordEntryConverter get ( @ QueryParam ( "expandLevel" ) @ DefaultValue ( "1" ) int expandLevel ) { } @ PUT @ Consumes ( { "application//xml" , "application//json" } ) public void put ( RecordEntryConverter data ) { } @ DELETE public void delete ( ) { } protected RecordEntry getEntity ( ) { EntityManager em = PersistenceService . getInstance ( ) . getEntityManager ( ) ; try { <START_BUG> return ( ( RecordEntry ) ( em . createQuery ( "SELECT<seq2seq4repair_space>e<seq2seq4repair_space>FROM<seq2seq4repair_space>Record<seq2seq4repair_space>e<seq2seq4repair_space>where<seq2seq4repair_space>e.id<seq2seq4repair_space>=<seq2seq4repair_space>:id" ) . setParameter ( "id" , id ) . getSingleResult ( ) ) ) ; <END_BUG> } catch ( NoResultException ex ) { throw new WebApplicationException ( new Throwable ( ( ( "Resource<seq2seq4repair_space>for<seq2seq4repair_space>" + ( uriInfo . getAbsolutePath ( ) . resolve ( URI . create ( "" ) ) ) ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) ) , 404 ) ; } } private RecordEntry updateEntity ( RecordEntry entity , RecordEntry newEntity ) { } private void deleteEntity ( RecordEntry entity ) { } @ Path ( "recordsession//" ) public RecordSessionResource getRecordSessionResource ( ) { } public static class RecordSessionResourceSub extends RecordSessionResource { private RecordEntry parent ; public void setParent ( RecordEntry parent ) { } @ Override protected RecordSession getEntity ( ) { RecordSession entity = parent . getRecordSession ( ) ; if ( entity == null ) { throw new WebApplicationException ( new Throwable ( ( ( "Resource<seq2seq4repair_space>for<seq2seq4repair_space>" + ( URI . create ( "" ) ) ) + "<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>exist." ) ) , 404 ) ; } return entity ; } } }

Fix:
return ( ( RecordEntry ) ( em . createQuery ( "SELECT<seq2seq4repair_space>e<seq2seq4repair_space>FROM<seq2seq4repair_space>RecordEntry<seq2seq4repair_space>e<seq2seq4repair_space>where<seq2seq4repair_space>e.id<seq2seq4repair_space>=<seq2seq4repair_space>:id" ) . setParameter ( "id" , id ) . getSingleResult ( ) ) ) ;
Buggy code:
public class AccusationsAgainstMeArrayAdapter extends BaseArrayAdapter < Accusation > { public AccusationsAgainstMeArrayAdapter ( Context context , int resource , List < Accusation > accusations ) { } @ Override protected Date getDate ( Accusation obj ) { } @ Override protected String getReason ( Accusation obj ) { } @ Override protected String getAttribution ( Accusation accusation ) { <START_BUG> return String . format ( getContext ( ) . getString ( accusation_against_me_attribution_format ) , accusation . getAccuserDisplay ( ) ) ; <END_BUG> } }

Fix:
return String . format ( getContext ( ) . getString ( accuser_format ) , accusation . getAccuserDisplay ( ) ) ;
Buggy code:
public class CassandraSchemaHandler { private static final Loggerf log = Loggerf . getLogger ( CassandraSchemaHandler . class ) ; private int schemaWaitPeriod = 200 ; private boolean waitForSyncing = true ; public boolean schemaExists ( Cluster cluster , String schemaName ) throws Exception { } public boolean validSchema ( Cluster cluster , String schemaName ) throws Exception { } private boolean validateTable ( KsDef ksDef , String tableName ) { if ( ( getCfDef ( ksDef , tableName ) ) == null ) { <START_BUG> CassandraSchemaHandler . log . debug ( "Table<seq2seq4repair_space>%s<seq2seq4repair_space>not<seq2seq4repair_space>found.<seq2seq4repair_space>Schema<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>recreated" ) ; <END_BUG> return false ; } return true ; } public void buildSchema ( Cluster cluster , String schemaName ) throws Exception { } public void buildSchema ( Cluster cluster , String schemaName , boolean dropExisting ) throws Exception { } public void dropSchema ( String schemaName , KeyspaceManager keyspaceManager ) throws Exception { } private void createColumnFamilies ( Cluster cluster , String schemaName , KsDef ksDef ) throws Exception , InterruptedException { } private void waitToPropagate ( ) throws Exception { } private CfDef getCfDef ( KsDef def , String table ) { } public void setSchemaWaitPeriod ( int schemaWaitPeriod ) { } public void setWaitForSyncing ( boolean waitForSyncing ) { } }

Fix:
CassandraSchemaHandler . log . debug ( "Table<seq2seq4repair_space>%s<seq2seq4repair_space>not<seq2seq4repair_space>found.<seq2seq4repair_space>Schema<seq2seq4repair_space>will<seq2seq4repair_space>be<seq2seq4repair_space>recreated" , tableName ) ;
Buggy code:
@ SuppressCodecs ( "Lucene3x" ) public class TestAnalyzingQueryParser extends LuceneTestCase { private static final String FIELD = "field" ; private Analyzer a ; private String [ ] wildcardInput ; private String [ ] wildcardExpected ; private String [ ] prefixInput ; private String [ ] prefixExpected ; private String [ ] rangeInput ; private String [ ] rangeExpected ; private String [ ] fuzzyInput ; private String [ ] fuzzyExpected ; private Map < String , String > wildcardEscapeHits = new TreeMap < > ( ) ; private Map < String , String > wildcardEscapeMisses = new TreeMap < > ( ) ; @ Override public void setUp ( ) throws Exception { } public void testSingleChunkExceptions ( ) { } public void testWildcardAlone ( ) throws ParseException { } public void testWildCardEscapes ( ) throws IOException , ParseException { } public void testWildCardQueryNoLeadingAllowed ( ) { } public void testWildCardQuery ( ) throws ParseException { } public void testPrefixQuery ( ) throws ParseException { } public void testRangeQuery ( ) throws ParseException { } public void testFuzzyQuery ( ) throws ParseException { } private String parseWithAnalyzingQueryParser ( String s , Analyzer a , boolean allowLeadingWildcard ) throws ParseException { } private Query getAnalyzedQuery ( String s , Analyzer a , boolean allowLeadingWildcard ) throws ParseException { } static final class FoldingFilter extends TokenFilter { final CharTermAttribute termAtt = addAttribute ( CharTermAttribute . class ) ; public FoldingFilter ( TokenStream input ) { } @ Override public boolean incrementToken ( ) throws IOException { } } static final class ASCIIAnalyzer extends Analyzer { @ Override public TokenStreamComponents createComponents ( String fieldName ) { } } public void testByteTerms ( ) throws Exception { } private boolean isAHit ( Query q , String content , Analyzer analyzer ) throws IOException { Directory ramDir = newDirectory ( ) ; RandomIndexWriter writer = new RandomIndexWriter ( random ( ) , ramDir , analyzer ) ; Document doc = new Document ( ) ; FieldType fieldType = new FieldType ( ) ; fieldType . setIndexed ( true ) ; fieldType . setTokenized ( true ) ; fieldType . setStored ( true ) ; Field field = new Field ( TestAnalyzingQueryParser . FIELD , content , fieldType ) ; doc . add ( field ) ; writer . addDocument ( doc ) ; <START_BUG> writer . close ( ) ; <END_BUG> DirectoryReader ir = DirectoryReader . open ( ramDir ) ; IndexSearcher is = new IndexSearcher ( ir ) ; int hits = is . search ( q , 10 ) . totalHits ; ir . close ( ) ; ramDir . close ( ) ; if ( hits == 1 ) { return true ; } else { return false ; } } }

Fix:
writer . shutdown ( ) ;
Buggy code:
public class CharLiteral extends NumberLiteral { char value ; public CharLiteral ( char [ ] token , int s , int e ) { } public void computeConstant ( ) { } private void computeValue ( ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { int pc = codeStream . position ; if ( valueRequired ) if ( ( ( implicitConversion ) > > 4 ) == ( TypeIds . T_char ) ) codeStream . generateInlinedValue ( value ) ; else codeStream . generateConstant ( constant , implicitConversion ) ; <START_BUG> codeStream . recordPositionsFrom ( pc , this ) ; <END_BUG> } public TypeBinding literalType ( BlockScope scope ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope blockScope ) { } }

Fix:
codeStream . recordPositionsFrom ( pc , this . sourceStart ) ;
Buggy code:
public class UserTransactionService extends AbstractService < UserTransaction > { public static final ServiceName SERVICE_NAME = TxnServices . JBOSS_TXN_USER_TRANSACTION ; private InjectedValue < TransactionManagerService > injectedArjunaTM = new InjectedValue < TransactionManagerService > ( ) ; public static void addService ( final ServiceTarget target ) { UserTransactionService service = new UserTransactionService ( ) ; ServiceBuilder < ? > serviceBuilder = target . addService ( UserTransactionService . SERVICE_NAME , service ) ; <START_BUG> serviceBuilder . addAliases ( ServiceName . of ( "jbosgi" , UserTransaction . class . getName ( ) ) ) ; <END_BUG> serviceBuilder . addDependency ( ArjunaTransactionManagerService . SERVICE_NAME , TransactionManagerService . class , service . injectedArjunaTM ) ; serviceBuilder . install ( ) ; } @ Override public UserTransaction getValue ( ) throws IllegalStateException { } }

Fix:
serviceBuilder . addAliases ( ServiceName . of ( "jbosgi" , "xservice" , UserTransaction . class . getName ( ) ) ) ;
Buggy code:
public class GeneOntology { private static final Logger log = Logger . getLogger ( GeneOntology . class ) ; private TIntObjectHashMap < Term > termMap ; public GeneOntology ( ) { } public GeneOntology ( FileInputStream i ) throws IOException { } public GeneOntology ( Set < Relationship > relationships ) { } public Term getTerm ( String goid ) { } public int size ( ) { } private int convertGOId ( String goid ) { } private String convertGOId ( int id ) { <START_BUG> return "GO:" + ( String . valueOf ( id ) ) ; <END_BUG> } public Set < GeneOntologyTerm > propagate ( Collection < GeneOntologyTerm > goSet ) { } public Map < GeneOntologyTerm , Set < EvidenceReference > > propagate ( Map < GeneOntologyTerm , Set < EvidenceReference > > goAnnotations ) { } public Set < Term > getAncestors ( String goid ) throws IllegalArgumentException { } public Set < Term > getAncestors ( int id ) { } private Set < Term > getAncestors ( Term t ) { } public Set < Term > getParents ( String goid ) throws IllegalArgumentException { } public Set < Term > getParents ( int id ) { } private Set < Term > getParents ( Term t ) { } public void parseAdjacencyList ( Set < Relationship > relationships ) { } public void parseOBO ( FileInputStream i ) throws IOException { } }

Fix:
return "GO:" + ( String . format ( "%07d" , id ) ) ;
Buggy code:
public class DateTime extends Composite { static final int DateTimeProc ; static final TCHAR DateTimeClass = new TCHAR ( 0 , OS . DATETIMEPICK_CLASS , true ) ; static final int CalendarProc ; static final TCHAR CalendarClass = new TCHAR ( 0 , OS . MONTHCAL_CLASS , true ) ; static final int MARGIN = 4 ; static final int MAX_DIGIT = 9 ; static final int MAX_DAY = 31 ; static final int MAX_12HOUR = 12 ; static final int MAX_24HOUR = 24 ; static final int MAX_MINUTE = 60 ; static final int MONTH_DAY_YEAR = 0 ; static final int DAY_MONTH_YEAR = 1 ; static final int YEAR_MONTH_DAY = 2 ; static final char SINGLE_QUOTE = '\'' ; static final char DAY_FORMAT_CONSTANT = 'd' ; static final char MONTH_FORMAT_CONSTANT = 'M' ; static final char YEAR_FORMAT_CONSTANT = 'y' ; static final char HOURS_FORMAT_CONSTANT = 'h' ; static final char MINUTES_FORMAT_CONSTANT = 'm' ; static final char SECONDS_FORMAT_CONSTANT = 's' ; static final char AMPM_FORMAT_CONSTANT = 't' ; static final int [ ] MONTH_NAMES = new int [ ] { OS . LOCALE_SMONTHNAME1 , OS . LOCALE_SMONTHNAME2 , OS . LOCALE_SMONTHNAME3 , OS . LOCALE_SMONTHNAME4 , OS . LOCALE_SMONTHNAME5 , OS . LOCALE_SMONTHNAME6 , OS . LOCALE_SMONTHNAME7 , OS . LOCALE_SMONTHNAME8 , OS . LOCALE_SMONTHNAME9 , OS . LOCALE_SMONTHNAME10 , OS . LOCALE_SMONTHNAME11 , OS . LOCALE_SMONTHNAME12 } ; public DateTime ( Composite parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } static int checkStyle ( int style ) { } protected void checkSubclass ( ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void createHandle ( ) { } int defaultBackground ( ) { } String getComputeSizeString ( ) { } String getCustomShortDateFormat ( ) { } String getCustomShortTimeFormat ( ) { } String getLongDateFormat ( ) { } String getShortDateFormat ( ) { } int getShortDateFormatOrdering ( ) { } String getTimeFormat ( ) { } boolean is24HourTime ( ) { } public int getDay ( ) { } public int getHours ( ) { } public int getMinutes ( ) { } public int getMonth ( ) { } String getNameText ( ) { } public int getSeconds ( ) { } public int getYear ( ) { } public void removeSelectionListener ( SelectionListener listener ) { } public void setDay ( int day ) { } public void setHours ( int hours ) { } public void setMinutes ( int minutes ) { } public void setMonth ( int month ) { } public void setSeconds ( int seconds ) { } public void setYear ( int year ) { } int widgetStyle ( ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } LRESULT wmNotifyChild ( NMHDR hdr , int wParam , int lParam ) { switch ( hdr . code ) { case OS . MCN_SELCHANGE : case OS . DTN_DATETIMECHANGE : <START_BUG> sendEvent ( Selection ) ; <END_BUG> break ; } return super . wmNotifyChild ( hdr , wParam , lParam ) ; } }

Fix:
postEvent ( Selection ) ;
Buggy code:
class TakmiSampleFixer implements SampleFixer { private TaxonomyReader taxonomyReader ; private IndexReader indexReader ; private FacetSearchParams searchParams ; public TakmiSampleFixer ( IndexReader indexReader , TaxonomyReader taxonomyReader , FacetSearchParams searchParams ) { } public void fixResult ( ScoredDocIDs origDocIds , FacetResult fres ) throws IOException { } private void fixResultNode ( FacetResultNode facetResNode , ScoredDocIDs docIds ) throws IOException { } private void recount ( FacetResultNode fresNode , ScoredDocIDs docIds ) throws IOException { CategoryPath catPath = fresNode . getLabel ( taxonomyReader ) ; Term drillDownTerm = DrillDown . term ( searchParams , catPath ) ; Bits liveDocs = MultiFields . getLiveDocs ( indexReader ) ; <START_BUG> int updatedCount = TakmiSampleFixer . countIntersection ( MultiFields . getTermDocsEnum ( indexReader , liveDocs , drillDownTerm . field ( ) , drillDownTerm . bytes ( ) , 0 ) , docIds . iterator ( ) ) ; <END_BUG> fresNode . setValue ( updatedCount ) ; } private static int countIntersection ( DocsEnum p1 , ScoredDocIDsIterator p2 ) throws IOException { } private static boolean advance ( ScoredDocIDsIterator iterator , int targetDoc ) { } }

Fix:
int updatedCount = TakmiSampleFixer . countIntersection ( MultiFields . getTermDocsEnum ( indexReader , liveDocs , drillDownTerm . field ( ) , drillDownTerm . bytes ( ) , false ) , docIds . iterator ( ) ) ;
Buggy code:
public class MetadataPageView extends ViewPart implements IPartListener , ISelectionListener { public static final String ID = "uk.ac.diamond.sda.meta.MetadataPageView" ; private static final Logger logger = LoggerFactory . getLogger ( MetadataPageView . class ) ; private IMetaData meta ; private ArrayList < MetadataPageContribution > pagesRegister = new ArrayList < MetadataPageContribution > ( ) ; private HashMap < String , IMetadataPage > loadedPages = new HashMap < String , IMetadataPage > ( ) ; private HashMap < String , Action > actionRegistary = new HashMap < String , Action > ( ) ; private HashMap < String , String > metatdataPageAssociation = new HashMap < String , String > ( ) ; private String defaultComposite ; private IToolBarManager toolBarManager ; private Composite parent ; private static final String PAGE_EXTENTION_ID = "uk.ac.diamond.sda.meta.metadataPageRegister" ; public MetadataPageView ( ) { } @ Override public void init ( IViewSite site ) throws PartInitException { } @ Override public void dispose ( ) { } private void initializePreferences ( ) { } private void getExtentionPoints ( ) { } private void metadataChanged ( final IMetaData meta ) { } private void doDefaultBehaviour ( ) { String currentAssociatedView ; <START_BUG> if ( ( ( metatdataPageAssociation ) != null ) && ( metatdataPageAssociation . containsKey ( meta . getClass ( ) . toString ( ) ) ) ) { <END_BUG> currentAssociatedView = metatdataPageAssociation . get ( meta . getClass ( ) . toString ( ) ) ; if ( actionRegistary . containsKey ( currentAssociatedView ) ) actionRegistary . get ( currentAssociatedView ) . run ( ) ; } else { if ( actionRegistary . containsKey ( defaultComposite ) ) actionRegistary . get ( defaultComposite ) . run ( ) ; } } private Action pageActionFactory ( final MetadataPageContribution mpc ) { } protected void updateAssociationsMap ( ) { } @ Override public void selectionChanged ( IWorkbenchPart part , ISelection selection ) { } private void updatePath ( final String filePath ) { } @ Override public void partActivated ( IWorkbenchPart part ) { } @ Override public void partBroughtToTop ( IWorkbenchPart part ) { } @ Override public void partClosed ( IWorkbenchPart part ) { } @ Override public void partDeactivated ( IWorkbenchPart part ) { } @ Override public void partOpened ( IWorkbenchPart part ) { } @ Override public void createPartControl ( Composite parent ) { } @ Override public void setFocus ( ) { } }

Fix:
if ( ( ( ( metatdataPageAssociation ) != null ) && ( ( meta ) != null ) ) && ( metatdataPageAssociation . containsKey ( meta . getClass ( ) . toString ( ) ) ) ) {
Buggy code:
public class SimplexSolver extends AbstractLinearOptimizer { private static final double DEFAULT_EPSILON = 1.0E-6 ; protected final double epsilon ; public SimplexSolver ( ) { } public SimplexSolver ( final double epsilon ) { } private Integer getPivotColumn ( SimplexTableau tableau ) { } private Integer getPivotRow ( SimplexTableau tableau , final int col ) { } protected void doIteration ( final SimplexTableau tableau ) throws OptimizationException { } protected void solvePhase1 ( final SimplexTableau tableau ) throws OptimizationException { } @ Override public RealPointValuePair doOptimize ( ) throws OptimizationException { final SimplexTableau tableau = new SimplexTableau ( function , linearConstraints , goal , nonNegative , epsilon ) ; solvePhase1 ( tableau ) ; <START_BUG> tableau . discardArtificialVariables ( ) ; <END_BUG> while ( ! ( tableau . isOptimal ( ) ) ) { doIteration ( tableau ) ; } return tableau . getSolution ( ) ; } }

Fix:
tableau . dropPhase1Objective ( ) ;
Buggy code:
public class MessageSet { String messageSetString ; public MessageSet ( Object [ ] uids ) { } public String getString ( ) { } public String parse ( Object [ ] uids ) { String messageSet = new String ( ) ; StringBuffer messageSetList = new StringBuffer ( ) ; int lastPos = 0 ; int newPos = 0 ; char lastChar = 'p' ; if ( ( uids . length ) == 1 ) { Integer uid = new Integer ( Integer . parseInt ( ( ( String ) ( uids [ 0 ] ) ) ) ) ; return uid . toString ( ) ; } else if ( ( uids . length ) == 2 ) { Integer uid1 = new Integer ( Integer . parseInt ( ( ( String ) ( uids [ 0 ] ) ) ) ) ; Integer uid2 = new Integer ( Integer . parseInt ( ( ( String ) ( uids [ 1 ] ) ) ) ) ; <START_BUG> return ( ( uid1 . toString ( ) ) + ":" ) + ( uid2 . toString ( ) ) ; <END_BUG> } for ( int i = 0 ; i < ( uids . length ) ; i ++ ) { Integer uid = new Integer ( Integer . parseInt ( ( ( String ) ( uids [ i ] ) ) ) ) ; if ( i == 0 ) { lastPos = uid . intValue ( ) ; messageSetList . append ( lastPos ) ; } else if ( i == 1 ) { newPos = uid . intValue ( ) ; if ( ( lastPos + 1 ) == newPos ) { messageSetList . append ( ":" ) ; lastChar = '-' ; lastPos = uid . intValue ( ) ; System . out . println ( "i==1" ) ; } else { lastPos = uid . intValue ( ) ; messageSetList . append ( ( "," + lastPos ) ) ; lastChar = 'p' ; } } else if ( i == ( ( uids . length ) - 1 ) ) { if ( lastChar == '-' ) { lastPos = uid . intValue ( ) ; messageSetList . append ( lastPos ) ; } else { lastPos = uid . intValue ( ) ; messageSetList . append ( ( "," + lastPos ) ) ; } } else { newPos = uid . intValue ( ) ; if ( lastChar == '-' ) { if ( ( lastPos + 1 ) == newPos ) { lastPos = uid . intValue ( ) ; } else { messageSetList . append ( lastPos ) ; lastPos = uid . intValue ( ) ; messageSetList . append ( ( "," + lastPos ) ) ; lastChar = 'p' ; } } else { if ( ( lastPos + 1 ) == newPos ) { messageSetList . append ( ":" ) ; lastChar = '-' ; lastPos = uid . intValue ( ) ; } else { lastPos = uid . intValue ( ) ; messageSetList . append ( ( "," + lastPos ) ) ; } } } } return messageSetList . toString ( ) ; } }

Fix:
return ( ( uid1 . toString ( ) ) + "," ) + ( uid2 . toString ( ) ) ;
Buggy code:
public class UpdateStudentView extends JFrame { private static final String NAME_OF_PAGE = "Update<seq2seq4repair_space>Student<seq2seq4repair_space>Information" ; private static MainView home = new MainView ( ) ; private String userID ; public void UpdateStudentViewStart ( String id ) { initComponents ( ) ; userID = id ; idOfUser . setText ( userID ) ; try { for ( UIManager . LookAndFeelInfo info : UIManager . getInstalledLookAndFeels ( ) ) { if ( "Windows" . equals ( info . getName ( ) ) ) { UIManager . setLookAndFeel ( info . getClassName ( ) ) ; break ; } } } catch ( ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex ) { Logger . getLogger ( UpdateStudentView . class . getName ( ) ) . log ( Level . SEVERE , null , ex ) ; } addWindowListener ( new WindowAdapter ( ) { @ Override public void windowClosing ( WindowEvent e ) { dispose ( ) ; <START_BUG> UpdateStudentView . home . resetAdminMode ( ) ; <END_BUG> } } ) ; setLocationRelativeTo ( null ) ; setVisible ( true ) ; errorLabel . setVisible ( false ) ; idOfUser . addKeyListener ( new KeyAdapter ( ) { public void keyTyped ( KeyEvent e ) { char c = e . getKeyChar ( ) ; if ( ! ( ( ( ( c >= '0' ) && ( c <= '9' ) ) || ( c == ( KeyEvent . VK_BACK_SPACE ) ) ) || ( c == ( KeyEvent . VK_DELETE ) ) ) ) { getToolkit ( ) . beep ( ) ; e . consume ( ) ; } } } ) ; } @ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { } private void submitActionPerformed ( ActionEvent evt ) { } private void emailEntryActionPerformed ( ActionEvent evt ) { } private void backButtonActionPerformed ( ActionEvent evt ) { } private void idOfUserActionPerformed ( ActionEvent evt ) { } private JMenu EditMenu ; private JButton backButton ; private JTextField emailEntry ; private JLabel emailExtension ; private JLabel errorLabel ; private JLabel firstName ; private JTextField firstNameEntry ; private JTextField idOfUser ; private JLabel jLabel1 ; private JMenuBar jMenuBar1 ; private JSeparator jSeparator1 ; private JLabel lastName ; private JTextField lastNameEntry ; private JLabel netID ; private JLabel newStudentLabel ; private JButton submit ; private JLabel tuID ; }

Fix:
UpdateStudentView . home . setVisible ( true ) ;
Buggy code:
public class Image { private double [ ] [ ] _data ; private int _width ; private int _height ; public Image ( int width , int height ) { } public Image ( int size ) { } public Image ( ImageProcessor ip ) { } public Image ( ImagePlus imp ) { } public Image ( Image img ) { } public Image ( Image img , int x , int y ) { } public Image ( Image img , int x , int y , int width , int height ) { } public Image drawLines ( List < Line > lines ) { } public Image drawPts ( List < Point > points ) { ImagePlus imp = this . getImagePlus ( ) ; ImageProcessor ip = imp . getProcessor ( ) ; for ( Point pt : points ) { <START_BUG> ip . fillOval ( ( ( ( int ) ( pt . x ) ) - 2 ) , ( ( ( int ) ( pt . y ) ) - 2 ) , 4 , 4 ) ; <END_BUG> } return new Image ( ip ) ; } public Image convolve ( Mask masque ) { } public void erase ( int x , int y , int radius ) { } public ImagePlus getImagePlus ( ) { } public void display ( ) { } public int getWidth ( ) { } public int getHeight ( ) { } public double [ ] [ ] getData ( ) { } public double get ( int x , int y ) { } public void set ( int x , int y , double value ) { } public double getPixel ( int x , int y ) { } public void put ( int x , int y , double value ) { } public void setPixel ( int x , int y , double value ) { } public void putPixel ( int x , int y , double value ) { } }

Fix:
ip . fillOval ( ( ( int ) ( pt . x ) ) , ( ( int ) ( pt . y ) ) , 4 , 4 ) ;
Buggy code:
public class DocSaver implements AsyncCallback < UnlockedDocument > { private Collaborator collaborator ; private LockedDocument lockedDocument ; private String side ; private int index ; private static final int maxStrLen = 25 ; public static void saveDoc ( Collaborator col , LockedDocument ld , String side , int ind ) { } public DocSaver ( Collaborator collaborator ) { } public void saveDocument ( LockedDocument lockedDoc , String side , int ind ) { } @ Override public void onFailure ( Throwable caught ) { } @ Override public void onSuccess ( UnlockedDocument result ) { collaborator . statusUpdate ( ( ( "Document<seq2seq4repair_space>'" + ( Collaborator . shortenText ( result . getTitle ( ) , DocSaver . maxStrLen ) ) ) + "'<seq2seq4repair_space>successfully<seq2seq4repair_space>saved." ) ) ; collaborator . setDoc ( result , index , side ) ; <START_BUG> collaborator . lister . getDocumentList ( ) ; <END_BUG> } }

Fix:
collaborator . lister . getDocumentList ( false ) ;
Buggy code:
public class Eden extends VevoxelPlugin { private FileConfiguration config ; private CommandRunner cmdr ; @ Override protected void loaded ( ) { } @ Override public void enabled ( ) { getCommand ( "killdan" ) . setExecutor ( cmdr ) ; getCommand ( "flysean" ) . setExecutor ( cmdr ) ; getCommand ( "tpr" ) . setExecutor ( cmdr ) ; getCommand ( "banlist" ) . setExecutor ( cmdr ) ; getCommand ( "testeden" ) . setExecutor ( cmdr ) ; getCommand ( "testplayer" ) . setExecutor ( cmdr ) ; saveDefaultConfig ( ) ; FileConfiguration config = getConfig ( ) ; this . config = config ; <START_BUG> new Schedule ( ) . runTaskTimer ( this , 0L , ( ( ( config . getInt ( "time" ) ) * 60 ) * 20 ) ) ; <END_BUG> } @ Override public void disabled ( ) { } public FileConfiguration sendConfig ( ) { } }

Fix:
new Schedule ( this ) . runTaskTimer ( this , 0L , ( ( ( config . getInt ( "time" ) ) * 60 ) * 20 ) ) ;
Buggy code:
class RecoveredTypeBinding implements ITypeBinding { private VariableDeclaration variableDeclaration ; private Type currentType ; private BindingResolver resolver ; private int dimensions ; private RecoveredTypeBinding innerTypeBinding ; private ITypeBinding [ ] typeArguments ; private TypeBinding referenceBinding ; RecoveredTypeBinding ( BindingResolver resolver , VariableDeclaration variableDeclaration ) { } RecoveredTypeBinding ( BindingResolver resolver , TypeBinding referenceBinding ) { } RecoveredTypeBinding ( BindingResolver resolver , Type type ) { } RecoveredTypeBinding ( BindingResolver resolver , RecoveredTypeBinding typeBinding ) { } public ITypeBinding createArrayType ( int dimension ) { } public String getBinaryName ( ) { } public ITypeBinding getBound ( ) { } public ITypeBinding getComponentType ( ) { } public IVariableBinding [ ] getDeclaredFields ( ) { } public IMethodBinding [ ] getDeclaredMethods ( ) { } public int getDeclaredModifiers ( ) { } public ITypeBinding [ ] getDeclaredTypes ( ) { } public ITypeBinding getDeclaringClass ( ) { } public IMethodBinding getDeclaringMethod ( ) { } public int getDimensions ( ) { } public ITypeBinding getElementType ( ) { } public ITypeBinding getErasure ( ) { } public ITypeBinding [ ] getInterfaces ( ) { } public int getModifiers ( ) { <START_BUG> return 0 ; <END_BUG> } public String getName ( ) { } private String getInternalName ( ) { } public IPackageBinding getPackage ( ) { } public String getQualifiedName ( ) { } public ITypeBinding getSuperclass ( ) { } public ITypeBinding [ ] getTypeArguments ( ) { } public ITypeBinding [ ] getTypeBounds ( ) { } public ITypeBinding getTypeDeclaration ( ) { } public ITypeBinding [ ] getTypeParameters ( ) { } public ITypeBinding getWildcard ( ) { } public boolean isAnnotation ( ) { } public boolean isAnonymous ( ) { } public boolean isArray ( ) { } public boolean isAssignmentCompatible ( ITypeBinding variableType ) { } public boolean isCapture ( ) { } public boolean isCastCompatible ( ITypeBinding typeBinding ) { } public boolean isClass ( ) { } public boolean isEnum ( ) { } public boolean isFromSource ( ) { } public boolean isGenericType ( ) { } public boolean isInterface ( ) { } public boolean isLocal ( ) { } public boolean isMember ( ) { } public boolean isNested ( ) { } public boolean isNullType ( ) { } public boolean isParameterizedType ( ) { } public boolean isPrimitive ( ) { } public boolean isRawType ( ) { } public boolean isSubTypeCompatible ( ITypeBinding typeBinding ) { } public boolean isTopLevel ( ) { } public boolean isTypeVariable ( ) { } public boolean isUpperbound ( ) { } public boolean isWildcardType ( ) { } public IAnnotationBinding [ ] getAnnotations ( ) { } public IJavaElement getJavaElement ( ) { } public String getKey ( ) { } public int getKind ( ) { } public boolean isDeprecated ( ) { } public boolean isEqualTo ( IBinding other ) { } public boolean isRecovered ( ) { } public boolean isSynthetic ( ) { } private String getTypeNameFrom ( Type type ) { } private Type getType ( ) { } }

Fix:
return Modifier . NONE ;
Buggy code:
public final class ThreadsExtension implements Extension { private static final Logger log = Logger . getLogger ( "org.jboss.as.threads" ) ; private static final SubsystemFactory < ThreadsSubsystemElement > FACTORY = new SubsystemFactory < ThreadsSubsystemElement > ( ) { public ThreadsSubsystemElement createSubsystemElement ( ) { } } ; public void activate ( final ServiceActivatorContext context ) { } public void initialize ( final ExtensionContext context ) { <START_BUG> context . registerSubsystem ( CURRENT . getUriString ( ) , ThreadsExtension . FACTORY , ThreadsParser . getInstance ( ) ) ; <END_BUG> } }

Fix:
context . registerSubsystem ( CURRENT . getUriString ( ) , ThreadsParser . getInstance ( ) ) ;
Buggy code:
public class S2PMigrationTestNam extends NetworkedAutonomicMachine implements IMobilityItemAvailability { private static S2PMigrationTestNam s2PMigrationTestNam = null ; private static String pathToSaveFile = ( Environment . getExternalStorageDirectory ( ) . toString ( ) ) + "//" ; private MccNamPeer peer ; private ArrayList < IMobilityItemIsAvailableObserver > listeners ; private S2PMigrationTestNam ( Context mContext , String confFile ) { } public void performTest ( ) { <START_BUG> String peerToBeContactedAddress = "0000010111110000000100000000010101010010011111000011101101010011101110010010001101010011001010110101110111111000101110001110001111001111110010111011010010111111@192.168.1.146:1996" ; <END_BUG> peer . requestService ( peerToBeContactedAddress , "TestService" , ANDROID , COPY , "1.0" ) ; } public void addIMobilityItemIsAvailableObserver ( IMobilityItemIsAvailableObserver iMobilityItemIsAvailableObserver ) { } public static S2PMigrationTestNam getInstance ( Context mContext ) { } public MccNamPeer getPeer ( ) { } @ Override public void onItemIsAvailable ( String fileFullPath , String mainClassName , MigrationSubject role , Action action , Object state ) { } }

Fix:
String peerToBeContactedAddress = "1101101101111110010100100001111010100010110100010001011110001110011110110011111101100100101111111011101011010001010010011011111011011111100111000001110100010001@192.168.1.146:6535" ;
Buggy code:
class Token { public static final int TOKEN_SEPARATOR = 0 ; public static final int TOKEN_STRING = 1 ; private final int m_type ; private final String m_value ; Token ( final int type , final String value ) { } final String getValue ( ) { } final int getType ( ) { } @ Override public final String toString ( ) { <START_BUG> final StringBuffer sb = new StringBuffer ( ) ; <END_BUG> sb . append ( m_type ) ; sb . append ( ":" ) ; sb . append ( m_value ) ; return sb . toString ( ) ; } }

Fix:
final StringBuilder sb = new StringBuilder ( ) ;
Buggy code:
public abstract class Loop extends WebMarkupContainer { public static final class LoopItem extends WebMarkupContainer { private static final long serialVersionUID = 1L ; private final int iteration ; private LoopItem ( final int iteration ) { } public int getIteration ( ) { } } public Loop ( final String id , final int iterations ) { } public Loop ( final String id , final IModel model ) { } public final int getIterations ( ) { } protected void internalOnBeginRequest ( ) { } protected Loop . LoopItem newItem ( int iteration ) { } protected final void onRender ( final MarkupStream markupStream ) { } protected abstract void populateItem ( Loop . LoopItem item ) { } protected void renderItem ( final Loop . LoopItem item ) { <START_BUG> item . render ( ) ; <END_BUG> } }

Fix:
item . render ( getMarkupStream ( ) ) ;
Buggy code:
public final class ServerMaker { private final ProcessManagerSlave processManagerSlave ; private final MessageHandler messageHandler ; private final ServerManagerEnvironment environment ; public ServerMaker ( ServerManagerEnvironment environment , ProcessManagerSlave processManagerSlave , MessageHandler messageHandler ) { } public Server makeServer ( Standalone serverConfig ) throws IOException { } private List < String > getServerLaunchCommand ( Standalone serverConfig ) { JvmElement jvm = serverConfig . getJvm ( ) ; List < String > command = new ArrayList < String > ( ) ; command . add ( getJavaCommand ( jvm ) ) ; Map < String , String > sysProps = appendJavaOptions ( jvm , command ) ; command . add ( "-Djava.util.logging.manager=org.jboss.logmanager.LogManager" ) ; <START_BUG> command . add ( ( ( "-Dorg.jboss.boot.log.file=" + ( serverConfig . getServerName ( ) ) ) + "//boot.log" ) ) ; <END_BUG> command . add ( "-jar" ) ; command . add ( "jboss-modules.jar" ) ; command . add ( "-mp" ) ; command . add ( "modules" ) ; command . add ( "-logmodule" ) ; command . add ( "org.jboss.logmanager:jboss-logmanager" ) ; command . add ( "org.jboss.as:jboss-as-server" ) ; appendArgsToMain ( serverConfig , sysProps , command ) ; return command ; } private String getJavaCommand ( JvmElement jvm ) { } private Map < String , String > appendJavaOptions ( JvmElement jvm , List < String > command ) { } private void appendArgsToMain ( Standalone serverConfig , Map < String , String > jvmProps , List < String > command ) { } private static String getPropertyValue ( String property , Map < String , String > jvmProps , Map < String , String > sysProps , String defaultVal ) { } private void addStandardProperties ( Map < String , String > sysProps ) { } private Map < String , String > getServerLaunchEnvironment ( JvmElement jvm ) { } }

Fix:
command . add ( ( ( "-Dorg.jboss.boot.log.file=logs//" + ( serverConfig . getServerName ( ) ) ) + "//boot.log" ) ) ;
Buggy code:
public class CommitLogHeader { public static String getHeaderPathFromSegment ( CommitLogSegment segment ) { } public static String getHeaderPathFromSegmentPath ( String segmentPath ) { } public static CommitLogHeader . CommitLogHeaderSerializer serializer = new CommitLogHeader . CommitLogHeaderSerializer ( ) ; private Map < Integer , Integer > cfDirtiedAt ; private final int cfCount ; CommitLogHeader ( ) { } private CommitLogHeader ( Map < Integer , Integer > cfDirtiedAt , int cfCount ) { } boolean isDirty ( Integer cfId ) { } int getPosition ( Integer cfId ) { } void turnOn ( Integer cfId , long position ) { } void turnOff ( Integer cfId ) { } boolean isSafeToDelete ( ) throws IOException { } public String toString ( ) { } public String dirtyString ( ) { } static void writeCommitLogHeader ( CommitLogHeader header , String headerFile ) throws IOException { } static CommitLogHeader readCommitLogHeader ( String headerFile ) throws IOException { } int getReplayPosition ( ) { <START_BUG> return cfDirtiedAt . isEmpty ( ) ? 0 : Collections . min ( cfDirtiedAt . values ( ) ) ; <END_BUG> } static class CommitLogHeaderSerializer implements ICompactSerializer2 < CommitLogHeader > { public void serialize ( CommitLogHeader clHeader , DataOutput dos ) throws IOException { } public CommitLogHeader deserialize ( DataInput dis ) throws IOException { } } }

Fix:
return cfDirtiedAt . isEmpty ( ) ? - 1 : Collections . min ( cfDirtiedAt . values ( ) ) ;
Buggy code:
public class RemoteCallImpl extends SharedObjectMsg implements Serializable , IRemoteCall { private static final long serialVersionUID = 1L ; private static final long DEFAULT_REMOTE_CALL_TIMEOUT = 30000 ; long timeout = RemoteCallImpl . DEFAULT_REMOTE_CALL_TIMEOUT ; public static RemoteCallImpl createRemoteCall ( String clazz , String method , Object [ ] parameters , long timeout ) { } public static RemoteCallImpl createRemoteCall ( String clazz , String method , Object [ ] parameters ) { } public static RemoteCallImpl createRemoteCall ( String clazz , String method ) { } protected RemoteCallImpl ( String clazz , String method , Object [ ] parameters , long timeout ) { } private RemoteCallImpl ( ) { } public long getTimeout ( ) { } public String toString ( ) { StringBuffer buf = new StringBuffer ( "RemoteCallImpl[" ) ; buf . append ( "class=" ) . append ( clazz ) . append ( ";" ) ; buf . append ( "method=" ) . append ( method ) . append ( ";" ) ; <START_BUG> buf . append ( "params=" ) . append ( Arrays . asList ( parameters ) ) . append ( ";" ) ; <END_BUG> buf . append ( "timeout=" ) . append ( timeout ) . append ( "]" ) ; return buf . toString ( ) ; } }

Fix:
buf . append ( "params=" ) . append ( ( ( parameters ) == null ? "" : Arrays . asList ( parameters ) ) ) . append ( ";" ) ;
Buggy code:
public class SchemaValidationUnitTestCase { @ Test public void testJbossStructureSchema ( ) throws Exception { <START_BUG> validateXsd ( "jboss-structure-1_0.xsd" ) ; <END_BUG> } private void validateXsd ( String xsdName ) throws SAXException { } private URL getXsdUrl ( String xsdName ) { } private final class ErrorHandlerImpl implements ErrorHandler { @ Override public void error ( SAXParseException e ) throws SAXException { } @ Override public void fatalError ( SAXParseException e ) throws SAXException { } @ Override public void warning ( SAXParseException e ) throws SAXException { } private String formatMessage ( SAXParseException e ) { } } }

Fix:
validateXsd ( "jboss-deployment-structure-1_0.xsd" ) ;
Buggy code:
public class GoalActor extends Actor { boolean started = false ; boolean touchedDown = false ; private Texture texture ; private float actorX ; private float actorY ; private boolean empty ; private boolean addGoalButtonVisible ; private boolean ownedgoal ; private boolean planRouteButtonVisible ; private Goal goal ; public int index ; public GoalActor ( int actorY , int actorX , boolean empty , Goal goal ) { } @ Override public void draw ( Batch batch , float alpha ) { } @ Override public void act ( float delta ) { if ( started ) { if ( this . isOwnedgoal ( ) ) { <START_BUG> if ( ! ( this . isEmpty ( ) ) ) { <END_BUG> if ( this . isPlanRouteButtonVisible ( ) ) { planRouteBtn . setVisible ( false ) ; this . setPlanRouteButtonVisible ( false ) ; } else { PlayerGoals . selectedGoal = goal ; PlayerGoals . selectedGoalActor = this ; planRouteBtn . setVisible ( true ) ; planRouteBtn . setX ( ( ( this . getX ( ) ) + 60 ) ) ; planRouteBtn . setY ( ( ( this . getY ( ) ) + 75 ) ) ; planRouteBtn . refreshBounds ( ) ; this . setPlanRouteButtonVisible ( true ) ; } } started = false ; } else { if ( ! ( this . isEmpty ( ) ) ) { if ( this . addGoalButtonVisible ) { addGoalBtn . setVisible ( false ) ; this . addGoalButtonVisible = false ; } else { GoalMenu . selectedGoal = this ; addGoalBtn . setX ( ( ( actorX ) + 60 ) ) ; addGoalBtn . setY ( ( ( actorY ) + 75 ) ) ; addGoalBtn . setVisible ( true ) ; addGoalBtn . refreshBounds ( ) ; this . addGoalButtonVisible = true ; } } started = false ; } } } public boolean isEmpty ( ) { } public void setEmpty ( Boolean empty ) { } public void setGoal ( Goal goal ) { } public Goal getGoal ( ) { } public void setX ( float x ) { } public void setY ( float y ) { } public float getX ( ) { } public float getY ( ) { } public int getIndex ( ) { } public void setIndex ( int i ) { } public boolean isPlanRouteButtonVisible ( ) { } public void setPlanRouteButtonVisible ( boolean planRouteButtonVisible ) { } public boolean isOwnedgoal ( ) { } public void setOwnedgoal ( boolean ownedgoal ) { } public void refreshBounds ( ) { } }

Fix:
if ( ( ! ( this . isEmpty ( ) ) ) && ( ! ( GoalMenu . open ) ) ) {
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 ( ) { if ( ! ( this . needCycleCheck ) ) return ; if ( ! ( this . canChangeResource ) ) return ; if ( ( ! ( project . hasCycleMarker ( ) ) ) && ( ! ( project . hasClasspathCycle ( newResolvedPath ) ) ) ) { return ; } postAction ( new JavaModelOperation . IPostAction ( ) { public String getID ( ) { return "updateCycleMarkers" ; } public void run ( ) throws JavaModelException { <START_BUG> JavaProject . updateAllCycleMarkers ( ) ; <END_BUG> } } , JavaModelOperation . REMOVEALL_APPEND ) ; } protected void updateOutputLocation ( ) throws JavaModelException { } protected void updateProjectReferencesIfNecessary ( ) throws JavaModelException { } public IJavaModelStatus verify ( ) { } }

Fix:
JavaProject . updateAllCycleMarkers ( null ) ;
Buggy code:
public class Manager { private static Manager instance ; public static Manager getInstance ( ) { } private SequenceMachine gestureMachine ; private SequenceMachine keyMachine ; private Manager ( ) { } public SequenceMachine getGestureMachine ( ) { } public SequenceMachine getKeyMachine ( ) { } public String getGestureTextForCommand ( String command ) throws IllegalArgumentException { } public String getKeyTextForCommand ( String command ) throws IllegalArgumentException { String text = null ; Sequence sequence = getKeyMachine ( ) . getFirstSequenceForCommand ( command ) ; if ( sequence != null ) <START_BUG> text = KeySupport . formatSequence ( sequence ) ; <END_BUG> return text != null ? text : Util . ZERO_LENGTH_STRING ; } public void reset ( ) { } }

Fix:
text = KeySupport . formatSequence ( sequence , true ) ;
Buggy code:
public class Match implements Comparable < Match > { public User u ; public Integer matches ; public Match ( User u , Integer matches ) { } @ Override public int compareTo ( Match o ) { <START_BUG> return this . matches . compareTo ( o . matches ) ; <END_BUG> } }

Fix:
return - ( this . matches . compareTo ( o . matches ) ) ;
Buggy code:
public class XpandEditorPlugin extends AbstractUIPlugin { private static XpandEditorPlugin plugin ; private ColorProvider colorProvider ; private ContributionTemplateStore templateStore ; private ContributionContextTypeRegistry contextTypeRegistry ; public XpandEditorPlugin ( ) { } @ Override public void start ( final BundleContext context ) throws Exception { } @ Override public void stop ( final BundleContext context ) throws Exception { } public static XpandEditorPlugin getDefault ( ) { } public static ImageDescriptor getImageDescriptor ( final String path ) { } public static String getId ( ) { } public static ColorProvider getColorProvider ( ) { } public static Shell getActiveWorkbenchShell ( ) { } private static IWorkbenchWindow getActiveWorkbenchWindow ( ) { } public static XpandExecutionContext getExecutionContext ( final IJavaProject project ) { } public TemplateStore getTemplateStore ( ) { } public ContextTypeRegistry getContextTypeRegistry ( ) { if ( ( contextTypeRegistry ) == null ) { contextTypeRegistry = new ContributionContextTypeRegistry ( ) ; <START_BUG> contextTypeRegistry . addContextType ( "org.eclipse.internal.xtend.xpand2.editor.context.Default" ) ; <END_BUG> } return contextTypeRegistry ; } }

Fix:
contextTypeRegistry . addContextType ( "org.eclipse.xpand.ui.editor.context.Default" ) ;
Buggy code:
public class TCCLSingletonService implements Service < TCCLSingletonService > { public static ServiceName SERVICE_NAME = JBOSS_AS . append ( "weld" , "singleton" ) ; @ Override public void start ( StartContext context ) throws StartException { <START_BUG> SingletonProvider . initialize ( new TCCLSingletonProvider ( ) ) ; <END_BUG> } @ Override public void stop ( StopContext context ) { } @ Override public TCCLSingletonService getValue ( ) throws IllegalArgumentException , IllegalStateException { } }

Fix:
SingletonProvider . initialize ( new ModuleGroupSingletonProvider ( ) ) ;