nus-yam/ex-repair huggingface dataset:
Buggy code:
public final class TreeMap < K , V > implements Iterable < P2 < K , V > > { private final Set < P2 < K , Option < V > > > tree ; private TreeMap ( final Set < P2 < K , Option < V > > > tree ) { } private static < K , V > Ord < P2 < K , V > > ord ( final Ord < K > keyOrd ) { } public static < K , V > TreeMap < K , V > empty ( final Ord < K > keyOrd ) { } @ Override public boolean equals ( Object other ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { } public static < K , V > TreeMap < K , V > treeMap ( final Ord < K > keyOrd , final P2 < K , V > ... p2s ) { } public static < K , V > TreeMap < K , V > treeMap ( final Ord < K > keyOrd , final List < P2 < K , V > > list ) { } public Option < V > get ( final K k ) { } public TreeMap < K , V > set ( final K k , final V v ) { } public TreeMap < K , V > delete ( final K k ) { } public int size ( ) { } public boolean isEmpty ( ) { } public List < V > values ( ) { } public List < K > keys ( ) { } public boolean contains ( final K k ) { } public Iterator < P2 < K , V > > iterator ( ) { } public Map < K , V > toMutableMap ( ) { } public Stream < P2 < K , V > > toStream ( ) { } public static < K , V > TreeMap < K , V > fromMutableMap ( final Ord < K > ord , final Map < K , V > m ) { } public F < K , Option < V > > get ( ) { } public P2 < Boolean , TreeMap < K , V > > update ( final K k , final F < V , V > f ) { <START_BUG> final P2 < Boolean , Set < P2 < K , Option < V > > > > up = tree . update ( P . p ( k , Option . < V > none ( ) ) , P2 . < K , Option < V > , Option < V > > map2_ ( Option . < V , V > map ( ) . f ( f ) ) ) ; <END_BUG> return P . p ( up . _1 ( ) , new TreeMap < K , V > ( up . _2 ( ) ) ) ; } public TreeMap < K , V > update ( final K k , final F < V , V > f , final V v ) { } public P3 < Set < V > , Option < V > , Set < V > > split ( Ord < V > ord , final K k ) { } private static < K , V > TreeMap < K , V > treeMap ( Ord < K > ord , Set < P2 < K , Option < V > > > s ) { } public P3 < TreeMap < K , V > , Option < V > , TreeMap < K , V > > splitLookup ( final K k ) { } @ SuppressWarnings ( { "unchecked" } ) public < W > TreeMap < K , W > map ( final F < V , W > f ) { } public TreeMap < K , V > union ( TreeMap < K , V > t2 ) { } public TreeMap < K , V > union ( Iterable < P2 < K , V > > t2 ) { } }

Fix:
final P2 < Boolean , Set < P2 < K , Option < V > > > > up = tree . update ( P . p ( k , Option . < V > none ( ) ) , Function . compose ( P2 . tuple ( P . p2 ( ) ) , P2 . < K , Option < V > , Option < V > > map2_ ( Option . < V , V > map ( ) . f ( f ) ) ) ) ;
Buggy code:
public class WebPage extends Page { private static final long serialVersionUID = 1L ; private BodyContainer bodyContainer ; protected WebPage ( ) { } protected WebPage ( final IModel model ) { } protected WebPage ( final PageMap pageMap ) { } protected WebPage ( final PageMap pageMap , final IModel model ) { } protected WebPage ( final PageParameters parameters ) { } public BodyContainer getBodyContainer ( ) { } public String getMarkupType ( ) { } protected void configureResponse ( ) { super . configureResponse ( ) ; final WebResponse response = getWebRequestCycle ( ) . getWebResponse ( ) ; response . setHeader ( "Pragma" , "no-cache" ) ; <START_BUG> response . setHeader ( "Cache-Control" , "no-store,<seq2seq4repair_space>no-cache,<seq2seq4repair_space>max-age=0,<seq2seq4repair_space>must-revalidate" ) ; <END_BUG> } protected final WebRequestCycle getWebRequestCycle ( ) { } protected final BookmarkablePageLink homePageLink ( final String id ) { } private void commonInit ( ) { } }

Fix:
response . setHeader ( "Cache-Control" , "no-cache,<seq2seq4repair_space>max-age=0,<seq2seq4repair_space>must-revalidate" ) ;
Buggy code:
public class ClassCodePiece extends NamedCodePiece { private CodePiece classDef ; private String name ; public ClassCodePiece ( CodePiece classDef , String name ) { } <START_BUG> public String getText ( ) { <END_BUG> return classDef . getText ( ) ; } public int getStartPosition ( ) { } public int getEndPosition ( ) { } public int getStartLine ( ) { } public int getEndLine ( ) { } public void write ( Writer writer , Stack parseStateStack , int column ) throws Exception { } }

Fix:
public StringBuffer getText ( ) {
Buggy code:
@ SuppressWarnings ( "all" ) public class Main { public static void main ( final String [ ] args ) { Map < String , Object > _extensionToFactoryMap = INSTANCE . getExtensionToFactoryMap ( ) ; XMIResourceFactoryImpl _xMIResourceFactoryImpl = new XMIResourceFactoryImpl ( ) ; _extensionToFactoryMap . put ( "xmi" , _xMIResourceFactoryImpl ) ; eINSTANCE . eClass ( ) ; final ResourceSetImpl resourceSet = new ResourceSetImpl ( ) ; <START_BUG> final URI uri = URI . createURI ( "test-files//wrongvalues.xmi" ) ; <END_BUG> final Resource resource = resourceSet . getResource ( uri , true ) ; TreeIterator < EObject > _allProperContents = EcoreUtil . < EObject > getAllProperContents ( resource , false ) ; final Function1 < EObject , Boolean > _function = new Function1 < EObject , Boolean > ( ) { public Boolean apply ( final EObject it ) { return Boolean . valueOf ( CfgDslValidator . constraint ( it ) ) ; } } ; boolean _forall = IteratorExtensions . < EObject > forall ( _allProperContents , _function ) ; if ( _forall ) { InputOutput . < String > println ( "All<seq2seq4repair_space>constraints<seq2seq4repair_space>are<seq2seq4repair_space>satisfied!" ) ; } else { InputOutput . < String > println ( "Some<seq2seq4repair_space>constraint<seq2seq4repair_space>is<seq2seq4repair_space>violated" ) ; } } }

Fix:
final URI uri = URI . createURI ( "test-files//binarysatisfy.xmi" ) ;
Buggy code:
public abstract class AbstractStandardUpgradeStrategy implements RequestUpgradeStrategy { protected final Log logger = LogFactory . getLog ( getClass ( ) ) ; private final ServerWebSocketSessionInitializer wsSessionInitializer = new ServerWebSocketSessionInitializer ( ) ; @ Override public void upgrade ( ServerHttpRequest request , ServerHttpResponse response , String protocol , WebSocketHandler handler ) throws IOException , HandshakeFailureException { StandardWebSocketSessionAdapter session = new StandardWebSocketSessionAdapter ( ) ; <START_BUG> this . wsSessionInitializer . initialize ( request , response , session ) ; <END_BUG> StandardEndpointAdapter endpoint = new StandardEndpointAdapter ( handler , session ) ; upgradeInternal ( request , response , protocol , endpoint ) ; } protected abstract void upgradeInternal ( ServerHttpRequest request , ServerHttpResponse response , String selectedProtocol , Endpoint endpoint ) throws IOException , HandshakeFailureException { } }

Fix:
this . wsSessionInitializer . initialize ( request , response , protocol , session ) ;
Buggy code:
class AddressSettingsWriteHandler implements OperationStepHandler { static final AddressSettingsWriteHandler INSTANCE = new AddressSettingsWriteHandler ( ) ; public void registerAttributes ( final ManagementResourceRegistration registry , boolean registerRuntimeOnly ) { } @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final Resource resource = context . readResourceForUpdate ( EMPTY_ADDRESS ) ; final String attribute = operation . require ( NAME ) . asString ( ) ; final AttributeDefinition def = AddressSettingsWriteHandler . getAttributeDefinition ( attribute ) ; if ( def == null ) { context . getFailureDescription ( ) . set ( new ModelNode ( ) . set ( MessagingMessages . MESSAGES . unknownAttribute ( attribute ) ) ) ; } else { <START_BUG> def . getValidator ( ) . validateParameter ( VALUE , operation ) ; <END_BUG> resource . getModel ( ) . get ( attribute ) . set ( operation . get ( VALUE ) ) ; if ( context . isNormalServer ( ) ) { context . addStep ( new OperationStepHandler ( ) { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final HornetQServer server = AddressSettingAdd . getServer ( context , operation ) ; PathAddress address = null ; HierarchicalRepository < AddressSettings > repository = null ; AddressSettings existingSettings = null ; if ( server != null ) { final ModelNode model = resource . getModel ( ) ; address = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; final AddressSettings settings = AddressSettingAdd . createSettings ( context , model ) ; repository = server . getAddressSettingsRepository ( ) ; String match = address . getLastElement ( ) . getValue ( ) ; existingSettings = repository . getMatch ( match ) ; repository . addMatch ( match , settings ) ; } if ( ( ( context . completeStep ( ) ) != ( ResultAction . KEEP ) ) && ( existingSettings != null ) ) { repository . addMatch ( address . getLastElement ( ) . getValue ( ) , existingSettings ) ; } } } , RUNTIME ) ; } } context . completeStep ( ) ; } static AttributeDefinition getAttributeDefinition ( final String attributeName ) { } }

Fix:
def . getValidator ( ) . validateParameter ( VALUE , operation . get ( VALUE ) ) ;
Buggy code:
abstract class AbstractSingleSelectChoice extends AbstractChoice { private static final String CHOOSE_ONE = "Choose<seq2seq4repair_space>One" ; private boolean nullValid = false ; public AbstractSingleSelectChoice ( final String id ) { } public AbstractSingleSelectChoice ( final String id , final List choices ) { } public AbstractSingleSelectChoice ( final String id , final List data , final IChoiceRenderer renderer ) { } public AbstractSingleSelectChoice ( final String id , IModel model , final List data ) { } public AbstractSingleSelectChoice ( final String id , IModel model , final List data , final IChoiceRenderer renderer ) { } public AbstractSingleSelectChoice ( String id , IModel choices ) { } public AbstractSingleSelectChoice ( String id , IModel model , IModel choices ) { } public AbstractSingleSelectChoice ( String id , IModel choices , IChoiceRenderer renderer ) { } public AbstractSingleSelectChoice ( String id , IModel model , IModel choices , IChoiceRenderer renderer ) { } public final String getModelValue ( ) { } public boolean isNullValid ( ) { } public void setNullValid ( boolean nullValid ) { } public final void setModelValue ( final String value ) { } protected String getDefaultChoice ( final Object selected ) { final StringBuffer buffer = new StringBuffer ( ) ; if ( isNullValid ( ) ) { <START_BUG> final String option = getLocalizer ( ) . getString ( ( ( getId ( ) ) + ".null" ) , this , "" ) ; <END_BUG> buffer . append ( "\n<option" ) ; if ( selected == null ) { buffer . append ( "<seq2seq4repair_space>selected=\"selected\"" ) ; } buffer . append ( "<seq2seq4repair_space>value=\"\">" ) . append ( option ) . append ( "<//option>" ) ; } else { if ( selected == null ) { final String option = getLocalizer ( ) . getString ( "null" , this , AbstractSingleSelectChoice . CHOOSE_ONE ) ; buffer . append ( "\n<option<seq2seq4repair_space>selected=\"selected\"<seq2seq4repair_space>value=\"\">" ) . append ( option ) . append ( "<//option>" ) ; } } return buffer . toString ( ) ; } protected boolean isSelected ( final Object object , int index ) { } public final void updateModel ( ) { } }

Fix:
final String option = getLocalizer ( ) . getString ( "null" , this , "" ) ;
Buggy code:
public final class Image implements Drawable { public int type ; public int pixmap ; public int mask ; Device device ; int transparentPixel = - 1 ; GC memGC ; byte [ ] alphaData ; int alpha = - 1 ; static final int DEFAULT_SCANLINE_PAD = 4 ; Image ( ) { } public Image ( Device device , int width , int height ) { } public Image ( Device device , Image srcImage , int flag ) { } public Image ( Device device , Rectangle bounds ) { } public Image ( Device device , ImageData image ) { } public Image ( Device device , ImageData source , ImageData mask ) { } public Image ( Device device , InputStream stream ) { } public Image ( Device device , String filename ) { } void createMask ( ) { } public void dispose ( ) { } void destroyMask ( ) { } public boolean equals ( Object object ) { } public Color getBackground ( ) { } public Rectangle getBounds ( ) { } public ImageData getImageData ( ) { } static boolean getOffsetForMask ( int bitspp , int mask , int byteOrder , int [ ] poff ) { } public int hashCode ( ) { } void init ( Device device , int width , int height ) { this . device = device ; <START_BUG> if ( ( width <= 0 ) | ( height <= 0 ) ) { <END_BUG> SWT . error ( ERROR_INVALID_ARGUMENT ) ; } this . type = SWT . BITMAP ; int xDisplay = device . xDisplay ; int screen = OS . XDefaultScreenOfDisplay ( xDisplay ) ; int depth = OS . XDefaultDepthOfScreen ( screen ) ; int screenNum = OS . XDefaultScreen ( xDisplay ) ; int drawable = OS . XDefaultRootWindow ( xDisplay ) ; int pixmap = OS . XCreatePixmap ( xDisplay , drawable , width , height , depth ) ; if ( pixmap == 0 ) SWT . error ( ERROR_NO_HANDLES ) ; int xGC = OS . XCreateGC ( xDisplay , drawable , 0 , null ) ; OS . XSetForeground ( xDisplay , xGC , OS . XWhitePixel ( xDisplay , screenNum ) ) ; OS . XFillRectangle ( xDisplay , pixmap , xGC , 0 , 0 , width , height ) ; OS . XFreeGC ( xDisplay , xGC ) ; this . pixmap = pixmap ; } void init ( Device device , ImageData image ) { } public int internal_new_GC ( GCData data ) { } public void internal_dispose_GC ( int gc , GCData data ) { } public boolean isDisposed ( ) { } public static Image motif_new ( Device device , int type , int pixmap , int mask ) { } static int putImage ( ImageData image , int srcX , int srcY , int srcWidth , int srcHeight , int destX , int destY , int destWidth , int destHeight , int display , int visual , int screenDepth , XColor [ ] xcolors , int [ ] transparentPixel , boolean isMask , int drawable , int gc ) { } public void setBackground ( Color color ) { } public String toString ( ) { } }

Fix:
if ( ( width <= 0 ) || ( height <= 0 ) ) {
Buggy code:
public class EditAbbrevDialog extends JDialog { public EditAbbrevDialog ( Frame frame , String abbrev , String expansion , Map abbrevs ) { } public EditAbbrevDialog ( Dialog dialog , String abbrev , String expansion , Map abbrevs ) { } public String getAbbrev ( ) { } public String getExpansion ( ) { } private AbbrevEditor editor ; private JButton ok ; private JButton cancel ; private boolean isOK ; private String originalAbbrev ; private Map abbrevs ; private void init ( String abbrev , String expansion , Map abbrevs ) { this . abbrevs = abbrevs ; this . originalAbbrev = abbrev ; JPanel content = new JPanel ( new BorderLayout ( ) ) ; content . setBorder ( new EmptyBorder ( 12 , 12 , 12 , 12 ) ) ; setContentPane ( content ) ; editor = new AbbrevEditor ( ) ; editor . setAbbrev ( abbrev ) ; editor . setExpansion ( expansion ) ; editor . setBorder ( new EmptyBorder ( 0 , 0 , 12 , 0 ) ) ; content . add ( BorderLayout . CENTER , editor ) ; Box box = new Box ( BoxLayout . X_AXIS ) ; box . add ( Box . createGlue ( ) ) ; ok = new JButton ( jEdit . getProperty ( "common.ok" ) ) ; ok . addActionListener ( new EditAbbrevDialog . ActionHandler ( ) ) ; getRootPane ( ) . setDefaultButton ( ok ) ; box . add ( ok ) ; box . add ( Box . createHorizontalStrut ( 6 ) ) ; cancel = new JButton ( jEdit . getProperty ( "common.cancel" ) ) ; cancel . addActionListener ( new EditAbbrevDialog . ActionHandler ( ) ) ; box . add ( cancel ) ; box . add ( Box . createGlue ( ) ) ; content . add ( BorderLayout . SOUTH , box ) ; KeyListener listener = new EditAbbrevDialog . KeyHandler ( ) ; addKeyListener ( listener ) ; editor . getBeforeCaretTextArea ( ) . addKeyListener ( listener ) ; editor . getAfterCaretTextArea ( ) . addKeyListener ( listener ) ; setDefaultCloseOperation ( WindowConstants . DISPOSE_ON_CLOSE ) ; pack ( ) ; setLocationRelativeTo ( getParent ( ) ) ; <START_BUG> show ( ) ; <END_BUG> } private boolean checkForExistingAbbrev ( ) { } class ActionHandler implements ActionListener { public void actionPerformed ( ActionEvent evt ) { } } class KeyHandler extends KeyAdapter { public void keyPressed ( KeyEvent evt ) { } } }

Fix:
setVisible ( true ) ;
Buggy code:
abstract class AbstractSingleSelectChoice extends AbstractChoice { private static final String CHOOSE_ONE = "Choose<seq2seq4repair_space>One" ; private boolean nullValid = false ; public AbstractSingleSelectChoice ( final String id ) { } public AbstractSingleSelectChoice ( final String id , final List choices ) { } public AbstractSingleSelectChoice ( final String id , final List data , final IChoiceRenderer renderer ) { } public AbstractSingleSelectChoice ( final String id , IModel model , final List data ) { } public AbstractSingleSelectChoice ( final String id , IModel model , final List data , final IChoiceRenderer renderer ) { } public AbstractSingleSelectChoice ( String id , IModel choices ) { } public AbstractSingleSelectChoice ( String id , IModel model , IModel choices ) { } public AbstractSingleSelectChoice ( String id , IModel choices , IChoiceRenderer renderer ) { } public AbstractSingleSelectChoice ( String id , IModel model , IModel choices , IChoiceRenderer renderer ) { } public final String getModelValue ( ) { } public boolean isNullValid ( ) { } public void setNullValid ( boolean nullValid ) { } public final void setModelValue ( final String value ) { } protected String getDefaultChoice ( final Object selected ) { final StringBuffer buffer = new StringBuffer ( ) ; if ( isNullValid ( ) ) { final String option = getLocalizer ( ) . getString ( ( ( getId ( ) ) + ".null" ) , this , "" ) ; buffer . append ( "\n<option" ) ; if ( selected == null ) { buffer . append ( "<seq2seq4repair_space>selected=\"selected\"" ) ; } buffer . append ( "<seq2seq4repair_space>value=\"\">" ) . append ( option ) . append ( "<//option>" ) ; } else { if ( selected == null ) { <START_BUG> final String option = getLocalizer ( ) . getString ( ( ( getId ( ) ) + ".null" ) , this , AbstractSingleSelectChoice . CHOOSE_ONE ) ; <END_BUG> buffer . append ( "\n<option<seq2seq4repair_space>selected=\"selected\"<seq2seq4repair_space>value=\"\">" ) . append ( option ) . append ( "<//option>" ) ; } } return buffer . toString ( ) ; } protected boolean isSelected ( final Object object , int index ) { } public final void updateModel ( ) { } }

Fix:
final String option = getLocalizer ( ) . getString ( "null" , this , AbstractSingleSelectChoice . CHOOSE_ONE ) ;
Buggy code:
public class DictionaryPatternsFinder implements PatternFinder { private static final Logger log = Logger . getLogger ( DictionaryPatternsFinder . class . getName ( ) ) ; private final DictionaryStrategy patternStrategy ; private final Dictionary dictionary ; public DictionaryPatternsFinder ( Dictionary wordlist , DictionaryStrategy strategy ) { } @ Override public void analyze ( PasswordResults pass ) throws Exception { CharSequence password = pass . getCharSequence ( ) ; List < CandidatePattern > currGen = new LinkedList < CandidatePattern > ( ) ; List < CandidatePattern > nextGen = new LinkedList < CandidatePattern > ( ) ; List < CandidatePattern > swap ; for ( int i = 0 ; i < ( password . length ( ) ) ; i ++ ) { <START_BUG> DictionaryPatternsFinder . log . info ( MessageFormat . format ( "{0}<seq2seq4repair_space>possible<seq2seq4repair_space>passwords<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>{1}th<seq2seq4repair_space>generation,<seq2seq4repair_space>{2}<seq2seq4repair_space>strategy" , nextGen . size ( ) , i , patternStrategy . getName ( ) ) ) ; <END_BUG> CandidatePattern newCandidate = dictionary . buildInitialCandidate ( i ) ; patternStrategy . addContext ( newCandidate , password ) ; nextGen . add ( newCandidate ) ; char c = password . charAt ( i ) ; swap = currGen ; currGen = nextGen ; nextGen = swap ; nextGen . clear ( ) ; for ( CandidatePattern subs : currGen ) { List < CandidatePattern > nextCandidates = patternStrategy . buildNextSubStrings ( subs , c ) ; for ( CandidatePattern candidate : nextCandidates ) { boolean isPossible = dictionary . partialMatch ( candidate ) ; if ( isPossible ) { if ( patternStrategy . isAdvanceable ( candidate ) ) { nextGen . add ( candidate ) ; if ( ( ( ( candidate . getLength ( ) ) > 2 ) && ( dictionary . isMatch ( candidate ) ) ) && ( patternStrategy . isMatch ( candidate ) ) ) { pass . foundPattern ( candidate . getMatchingPattern ( dictionary . getWordCount ( ) , patternStrategy . getName ( ) , dictionary . getName ( ) , i ) ) ; } } } } } } return ; } }

Fix:
DictionaryPatternsFinder . log . finest ( MessageFormat . format ( "{0}<seq2seq4repair_space>possible<seq2seq4repair_space>passwords<seq2seq4repair_space>in<seq2seq4repair_space>the<seq2seq4repair_space>{1}th<seq2seq4repair_space>generation,<seq2seq4repair_space>{2}<seq2seq4repair_space>strategy" , nextGen . size ( ) , i , patternStrategy . getName ( ) ) ) ;
Buggy code:
public class Player extends PhysicsActor { public Player ( World world , float x , float y ) { } @ Override public void act ( float delta ) { } public void jump ( ) { Log . d ( "Player" , "jump!" ) ; <START_BUG> body . applyLinearImpulse ( new Vector2 ( 0 , 30 ) , body . getPosition ( ) , true ) ; <END_BUG> } }

Fix:
body . applyLinearImpulse ( new Vector2 ( 0 , 14 ) , body . getWorldCenter ( ) , true ) ;
Buggy code:
public class MobSpawnHandler { Random randomizer = new Random ( ) ; @ SubscribeEvent public void onEntitySpawn ( EntityJoinWorldEvent event ) { if ( ( ( ( ( instance . gameStarted ) == false ) && ( ( event . entity ) instanceof EntityLivingBase ) ) && ( ! ( ( event . entity ) instanceof EntityPlayerMP ) ) ) && ( ! ( ( event . entity ) instanceof EntityVillager ) ) ) { event . setCanceled ( true ) ; } else { <START_BUG> if ( ( ( event . entity ) instanceof EntityPlayerMP ) && ( ( event . entity . dimension ) == 0 ) ) { <END_BUG> event . entity . setPosition ( ( ( ConfigurationHandler . wallRadius ) + 257 ) , 131 , 1 ) ; BlockPos spawnPoint = new BlockPos ( ( ( ConfigurationHandler . wallRadius ) + 257 ) , 131 , 1 ) ; ( ( EntityPlayerMP ) ( event . entity ) ) . setSpawnPoint ( spawnPoint , true ) ; } } if ( ( ( instance . gameStarted ) == true ) && ( ( event . entity ) instanceof EntityRabbit ) ) { if ( ( ( randomizer . nextInt ( 100 ) ) < ( ConfigurationHandler . hostileRabbitPercentage ) ) && ( ( ( ( EntityRabbit ) ( event . entity ) ) . getRabbitType ( ) ) != 99 ) ) { ( ( EntityRabbit ) ( event . entity ) ) . setRabbitType ( 99 ) ; } } } }

Fix:
if ( ( ( ( instance . gameStarted ) == false ) && ( ( event . entity ) instanceof EntityPlayerMP ) ) && ( ( event . entity . dimension ) == 0 ) ) {
Buggy code:
public class TCPClientSOContainer extends ClientSOContainer { int keepAlive = 0 ; public static final int DEFAULT_TCP_CONNECT_TIMEOUT = 30000 ; public static final String DEFAULT_COMM_NAME = Client . class . getName ( ) ; public TCPClientSOContainer ( ISharedObjectContainerConfig config ) { } public TCPClientSOContainer ( ISharedObjectContainerConfig config , int ka ) { } protected int getConnectTimeout ( ) { } protected ISynchAsynchConnection createConnection ( ID remoteSpace , Object data ) throws ConnectionCreateException { } public static final void main ( String [ ] args ) throws Exception { ISharedObjectContainerConfig config = new SOContainerConfig ( IDFactory . getDefault ( ) . createGUID ( ) ) ; TCPClientSOContainer container = new TCPClientSOContainer ( config ) ; <START_BUG> ID serverID = IDFactory . getDefault ( ) . createStringID ( TCPServerSOContainer . getDefaultServerURL ( ) ) ; <END_BUG> container . connect ( serverID , null ) ; Thread . sleep ( 200000 ) ; } }

Fix:
ID serverID = IDFactory . getDefault ( ) . createStringID ( "ecftcp:////localhost:3282//server" ) ;
Buggy code:
public class TestMapBackedSet < E > extends AbstractTestSet < E > { public TestMapBackedSet ( String testName ) { } @ Override public Set < E > makeObject ( ) { <START_BUG> return MapBackedSet . decorate ( new org . apache . commons . collections . map . HashedMap < E , Object > ( ) ) ; <END_BUG> } @ Override public String getCompatibilityVersion ( ) { } }

Fix:
return MapBackedSet . mapBackedSet ( new org . apache . commons . collections . map . HashedMap < E , Object > ( ) ) ;
Buggy code:
public abstract class ConstraintConstantAction extends DDLSingleTableConstantAction { protected String constraintName ; protected int constraintType ; protected String tableName ; protected String schemaName ; protected UUID schemaId ; protected IndexConstantAction indexAction ; ConstraintConstantAction ( String constraintName , int constraintType , String tableName , UUID tableId , String schemaName , IndexConstantAction indexAction ) { } public int getConstraintType ( ) { } public String getConstraintName ( ) { } public IndexConstantAction getIndexAction ( ) { } static void validateFKConstraint ( TransactionController tc , DataDictionary dd , ForeignKeyConstraintDescriptor fk , ReferencedKeyConstraintDescriptor refcd , ExecRow indexTemplateRow ) throws StandardException { } static boolean validateConstraint ( String constraintName , String constraintText , TableDescriptor td , LanguageConnectionContext lcc , boolean isCheckConstraint ) throws StandardException { StringBuffer checkStmt = new StringBuffer ( ) ; checkStmt . append ( "SELECT<seq2seq4repair_space>COUNT(*)<seq2seq4repair_space>FROM<seq2seq4repair_space>" ) ; checkStmt . append ( td . getQualifiedName ( ) ) ; checkStmt . append ( "<seq2seq4repair_space>WHERE<seq2seq4repair_space>NOT(" ) ; checkStmt . append ( constraintText ) ; checkStmt . append ( ")" ) ; ResultSet rs = null ; try { PreparedStatement ps = lcc . prepareInternalStatement ( checkStmt . toString ( ) ) ; <START_BUG> rs = ps . execute ( lcc , false , 0L ) ; <END_BUG> ExecRow row = rs . getNextRow ( ) ; if ( SanityManager . DEBUG ) { if ( row == null ) { SanityManager . THROWASSERT ( ( "did<seq2seq4repair_space>not<seq2seq4repair_space>get<seq2seq4repair_space>any<seq2seq4repair_space>rows<seq2seq4repair_space>back<seq2seq4repair_space>from<seq2seq4repair_space>query:<seq2seq4repair_space>" + ( checkStmt . toString ( ) ) ) ) ; } } DataValueDescriptor [ ] rowArray = row . getRowArray ( ) ; Number value = ( ( Number ) ( ( ( org . apache . derby . iapi . types . NumberDataValue ) ( row . getRowArray ( ) [ 0 ] ) ) . getObject ( ) ) ) ; if ( ( value != null ) && ( ( value . longValue ( ) ) != 0 ) ) { if ( isCheckConstraint ) throw StandardException . newException ( LANG_ADD_CHECK_CONSTRAINT_FAILED , constraintName , td . getQualifiedName ( ) , value . toString ( ) ) ; return false ; } } finally { if ( rs != null ) { rs . close ( ) ; } } return true ; } }

Fix:
rs = ps . executeSubStatement ( lcc , false , 0L ) ;
Buggy code:
public class NOTATIONDatatypeValidator extends AbstractStringValidator { public NOTATIONDatatypeValidator ( ) { } public NOTATIONDatatypeValidator ( DatatypeValidator base , Hashtable facets , boolean derivedByList , XMLErrorReporter reporter ) { } protected void assignAdditionalFacets ( String key , Hashtable facets ) throws InvalidDatatypeFacetException { } public Object validate ( String content , ValidationContext state ) throws InvalidDatatypeValueException { } private void checkContent ( String content , ValidationContext state , boolean asBase ) throws InvalidDatatypeValueException { if ( ( fBaseValidator ) instanceof NOTATIONDatatypeValidator ) { ( ( NOTATIONDatatypeValidator ) ( fBaseValidator ) ) . checkContent ( content , state , true ) ; } if ( ( ( fFacetsDefined ) & ( DatatypeValidator . FACET_PATTERN ) ) != 0 ) { if ( ( ( fRegex ) == null ) || ( ( fRegex . matches ( content ) ) == false ) ) throw new InvalidDatatypeValueException ( ( ( ( ( "Value<seq2seq4repair_space>'" + content ) + "'<seq2seq4repair_space>does<seq2seq4repair_space>not<seq2seq4repair_space>match<seq2seq4repair_space>regular<seq2seq4repair_space>expression<seq2seq4repair_space>facet<seq2seq4repair_space>'" ) + ( fPattern ) ) + "'." ) ) ; } if ( ( fTokenType ) != ( SPECIAL_TOKEN_NONE ) ) { validateToken ( fTokenType , content ) ; } if ( asBase ) return ; int length = getLength ( content ) ; <START_BUG> if ( ( ( ( fFacetsDefined ) & ( DatatypeValidator . FACET_ENUMERATION ) ) != 0 ) && ( ( fEnumeration ) != null ) ) { <END_BUG> String prefix = state . getSymbol ( "" ) ; String localpart = content ; int colonptr = content . indexOf ( ":" ) ; if ( colonptr > 0 ) { prefix = content . substring ( 0 , colonptr ) ; localpart = content . substring ( ( colonptr + 1 ) ) ; } String uriStr = state . getURI ( state . getSymbol ( prefix ) ) ; String fullName = ( uriStr != null ) ? ( uriStr + "," ) + localpart : localpart ; if ( ( fEnumeration . contains ( fullName ) ) == false ) throw new InvalidDatatypeValueException ( ( ( ( "Value<seq2seq4repair_space>'" + content ) + "'<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>one<seq2seq4repair_space>of<seq2seq4repair_space>" ) + ( fEnumeration ) ) ) ; } } protected void checkValueSpace ( String content ) throws InvalidDatatypeValueException { } public int compare ( String content1 , String content2 ) { } }

Fix:
if ( ( ( state != null ) && ( ( ( fFacetsDefined ) & ( DatatypeValidator . FACET_ENUMERATION ) ) != 0 ) ) && ( ( fEnumeration ) != null ) ) {
Buggy code:
public class ThisOrTargetPointcut extends NameBindingPointcut { private boolean isThis ; private TypePattern type ; public ThisOrTargetPointcut ( boolean isThis , TypePattern type ) { } <START_BUG> public FuzzyBoolean fastMatch ( ResolvedTypeX type ) { <END_BUG> return FuzzyBoolean . MAYBE ; } private boolean couldMatch ( Shadow shadow ) { } public FuzzyBoolean match ( Shadow shadow ) { } public void write ( DataOutputStream s ) throws IOException { } public static Pointcut read ( DataInputStream s , ISourceContext context ) throws IOException { } public void resolveBindings ( IScope scope , Bindings bindings ) { } public void postRead ( ResolvedTypeX enclosingType ) { } public boolean equals ( Object other ) { } public int hashCode ( ) { } public String toString ( ) { } public Test findResidue ( Shadow shadow , ExposedState state ) { } public Pointcut concretize1 ( ResolvedTypeX inAspect , IntMap bindings ) { } }

Fix:
public FuzzyBoolean fastMatch ( FastMatchInfo type ) {
Buggy code:
public class Transaction extends BaseTransaction implements Persistent { private Attachment aAttachment = null ; public void create ( NumberKey typeId , ScarabUser user , Attachment attachment ) throws Exception { } public Attachment getAttachment ( ) throws Exception { } public void setAttachment ( Attachment v ) throws Exception { } public List getActivityList ( ) throws Exception { } public void sendEmail ( TemplateContext context , Issue issue , String subject , String template ) throws Exception { TemplateEmail te = new TemplateEmail ( ) ; if ( context == null ) { context = new DefaultTemplateContext ( ) ; } context . put ( "issue" , issue ) ; context . put ( "attachment" , aAttachment ) ; context . put ( "activityList" , getActivityList ( ) ) ; te . setContext ( context ) ; te . setFrom ( Turbine . getConfiguration ( ) . getString ( "scarab.email.modifyissue.fromName" , "Scarab<seq2seq4repair_space>System" ) , Turbine . getConfiguration ( ) . getString ( "scarab.email.modifyissue.fromAddress" , "help@scarab.tigris.org" ) ) ; if ( subject == null ) { te . setSubject ( ( ( ( ( "[" + ( issue . getModule ( ) . getRealName ( ) . toUpperCase ( ) ) ) + "]<seq2seq4repair_space>Issue<seq2seq4repair_space>#" ) + ( issue . getUniqueId ( ) ) ) + "<seq2seq4repair_space>modified" ) ) ; } else { te . setSubject ( subject ) ; } if ( template == null ) { te . setTemplate ( Turbine . getConfiguration ( ) . getString ( "scarab.email.modifyissue.template" , "email//ModifyIssue.vm" ) ) ; } else { te . setTemplate ( template ) ; } List associatedUsers = issue . getAssociatedUsers ( ) ; Iterator iter = associatedUsers . iterator ( ) ; while ( iter . hasNext ( ) ) { ScarabUser toUser = ( ( ScarabUser ) ( iter . next ( ) ) ) ; <START_BUG> te . setTo ( ( ( ( toUser . getFirstName ( ) ) + "<seq2seq4repair_space>" ) + ( toUser . getLastName ( ) ) ) , toUser . getUserName ( ) ) ; <END_BUG> te . send ( ) ; } } public void sendEmail ( TemplateContext context , Issue issue ) throws Exception { } public void sendEmail ( Issue issue ) throws Exception { } public void sendEmail ( Issue issue , String subject , String template ) throws Exception { } }

Fix:
te . setTo ( ( ( ( toUser . getFirstName ( ) ) + "<seq2seq4repair_space>" ) + ( toUser . getLastName ( ) ) ) , toUser . getEmail ( ) ) ;
Buggy code:
public class MatrixUtils { public MatrixUtils ( ) { } public static RealMatrix createRealMatrix ( final int rows , final int columns ) { } public static < T extends FieldElement < T > > FieldMatrix < T > createFieldMatrix ( final Field < T > field , final int rows , final int columns ) { } public static RealMatrix createRealMatrix ( double [ ] [ ] data ) { } public static < T extends FieldElement < T > > FieldMatrix < T > createFieldMatrix ( T [ ] [ ] data ) { } public static RealMatrix createRealIdentityMatrix ( int dimension ) { } @ SuppressWarnings ( "unchecked" ) public static < T extends FieldElement < T > > FieldMatrix < T > createFieldIdentityMatrix ( final Field < T > field , final int dimension ) { final T zero = field . getZero ( ) ; final T one = field . getOne ( ) ; <START_BUG> final T [ ] [ ] d = ( ( T [ ] [ ] ) ( Array . newInstance ( zero . getClass ( ) , dimension , dimension ) ) ) ; <END_BUG> for ( int row = 0 ; row < dimension ; row ++ ) { final T [ ] dRow = d [ row ] ; Arrays . fill ( dRow , zero ) ; dRow [ row ] = one ; } return new FieldMatrixImpl < T > ( d , false ) ; } @ Deprecated public static BigMatrix createBigIdentityMatrix ( int dimension ) { } public static RealMatrix createRealDiagonalMatrix ( final double [ ] diagonal ) { } public static < T extends FieldElement < T > > FieldMatrix < T > createFieldDiagonalMatrix ( final T [ ] diagonal ) { } @ Deprecated public static BigMatrix createBigMatrix ( double [ ] [ ] data ) { } @ Deprecated public static BigMatrix createBigMatrix ( BigDecimal [ ] [ ] data ) { } @ Deprecated public static BigMatrix createBigMatrix ( BigDecimal [ ] [ ] data , boolean copyArray ) { } @ Deprecated public static BigMatrix createBigMatrix ( String [ ] [ ] data ) { } public static RealVector createRealVector ( double [ ] data ) { } public static < T extends FieldElement < T > > FieldVector < T > createFieldVector ( final T [ ] data ) { } public static RealMatrix createRowRealMatrix ( double [ ] rowData ) { } public static < T extends FieldElement < T > > FieldMatrix < T > createRowFieldMatrix ( final T [ ] rowData ) { } @ Deprecated public static BigMatrix createRowBigMatrix ( double [ ] rowData ) { } @ Deprecated public static BigMatrix createRowBigMatrix ( BigDecimal [ ] rowData ) { } @ Deprecated public static BigMatrix createRowBigMatrix ( String [ ] rowData ) { } public static RealMatrix createColumnRealMatrix ( double [ ] columnData ) { } public static < T extends FieldElement < T > > FieldMatrix < T > createColumnFieldMatrix ( final T [ ] columnData ) { } @ Deprecated public static BigMatrix createColumnBigMatrix ( double [ ] columnData ) { } @ Deprecated public static BigMatrix createColumnBigMatrix ( BigDecimal [ ] columnData ) { } @ Deprecated public static BigMatrix createColumnBigMatrix ( String [ ] columnData ) { } }

Fix:
final T [ ] [ ] d = ( ( T [ ] [ ] ) ( Array . newInstance ( zero . getClass ( ) , new int [ ] { dimension , dimension } ) ) ) ;
Buggy code:
public class GamePlayFragment extends StoryFragment { private Button mFinishPlaying ; @ Override public View onCreateView ( LayoutInflater inflater , ViewGroup container , Bundle savedInstanceState ) { super . onCreateView ( inflater , container , savedInstanceState ) ; View rootView = inflater . inflate ( fragment_game_play , container , false ) ; <START_BUG> mFinishPlaying = ( ( Button ) ( rootView . findViewById ( game_over_play_again ) ) ) ; <END_BUG> mFinishPlaying . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View v ) { nextStoryFragment ( ) ; } } ) ; return rootView ; } }

Fix:
mFinishPlaying = ( ( Button ) ( rootView . findViewById ( game_play_finish ) ) ) ;
Buggy code:
public interface AdditionalInitialization extends AdditionalParsers { Type getType ( ) { } void setupController ( ControllerInitializer controllerInitializer ) { } void addExtraServices ( ServiceTarget target ) { } <START_BUG> void initializeExtraSubystemsAndModel ( ExtensionContext context , Resource rootResource , ManagementResourceRegistration rootRegistration ) ; <END_BUG> }

Fix:
void initializeExtraSubystemsAndModel ( ExtensionContext extensionContext , Resource rootResource , ManagementResourceRegistration rootRegistration ) ;
Buggy code:
public class EditorActionBuilder extends PluginActionBuilder { private static final String TAG_CONTRIBUTION_TYPE = "editorContribution" ; public EditorActionBuilder ( ) { } protected ActionDescriptor createActionDescriptor ( IConfigurationElement element ) { } protected BasicContribution createContribution ( ) { } <START_BUG> public IEditorActionBarContributor readActionExtensions ( IEditorDescriptor desc , IActionBars bars ) { <END_BUG> EditorActionBuilder . ExternalContributor ext = null ; readContributions ( desc . getId ( ) , EditorActionBuilder . TAG_CONTRIBUTION_TYPE , PL_EDITOR_ACTIONS ) ; if ( ( cache ) != null ) { ext = new EditorActionBuilder . ExternalContributor ( cache ) ; cache = null ; } return ext ; } private static class EditorContribution extends BasicContribution { public void dispose ( ) { } public void editorChanged ( IEditorPart editor ) { } } public static class ExternalContributor implements IEditorActionBarContributor { private ArrayList cache ; public ExternalContributor ( ArrayList cache ) { } public void dispose ( ) { } public ActionDescriptor [ ] getExtendedActions ( ) { } public void init ( IActionBars bars , IWorkbenchPage page ) { } public void setActiveEditor ( IEditorPart editor ) { } } }

Fix:
public IEditorActionBarContributor readActionExtensions ( IEditorDescriptor desc ) {
Buggy code:
public class Memtable implements Comparable < Memtable > , IFlushable { private static final Logger logger = LoggerFactory . getLogger ( Memtable . class ) ; private boolean isFrozen ; private final AtomicInteger currentThroughput = new AtomicInteger ( 0 ) ; private final AtomicInteger currentOperations = new AtomicInteger ( 0 ) ; private final long creationTime ; private final ConcurrentNavigableMap < DecoratedKey , ColumnFamily > columnFamilies = new ConcurrentSkipListMap < DecoratedKey , ColumnFamily > ( ) ; public final ColumnFamilyStore cfs ; private final int THRESHOLD ; private final int THRESHOLD_COUNT ; public Memtable ( ColumnFamilyStore cfs ) { } public int compareTo ( Memtable rhs ) { } public int getCurrentThroughput ( ) { } public int getCurrentOperations ( ) { } boolean isThresholdViolated ( ) { } boolean isFrozen ( ) { } void freeze ( ) { } void put ( DecoratedKey key , ColumnFamily columnFamily ) { } private void resolve ( DecoratedKey key , ColumnFamily cf ) { } public String contents ( ) { } private SSTableReader writeSortedContents ( ) throws IOException { } public void flushAndSignal ( final CountDownLatch latch , ExecutorService sorter , final ExecutorService writer ) { } public String toString ( ) { } public Iterator < Map . Entry < DecoratedKey , ColumnFamily > > getEntryIterator ( DecoratedKey startWith ) { } public boolean isClean ( ) { } public String getTableName ( ) { } public static IColumnIterator getSliceIterator ( final DecoratedKey key , final ColumnFamily cf , SliceQueryFilter filter , AbstractType typeComparator ) { } public static IColumnIterator getNamesIterator ( final DecoratedKey key , final ColumnFamily cf , final NamesQueryFilter filter ) { } public ColumnFamily getColumnFamily ( DecoratedKey key ) { } void clearUnsafe ( ) { } public boolean isExpired ( ) { <START_BUG> return ( System . currentTimeMillis ( ) ) > ( ( creationTime ) + ( ( ( cfs . getMemtableFlushAfterMins ( ) ) * 60 ) * 1000 ) ) ; <END_BUG> } }

Fix:
return ( System . currentTimeMillis ( ) ) > ( ( creationTime ) + ( ( ( cfs . getMemtableFlushAfterMins ( ) ) * 60 ) * 1000L ) ) ;
Buggy code:
public class ShellProcess { private DataOutputStream processIn ; private BufferedReader processOut ; private Process _subprocess ; private String [ ] command ; public ShellProcess ( String [ ] command ) { } public Number launch ( Map conf , TopologyContext context ) throws IOException { } public void destroy ( ) { } public void writeMessage ( Object msg ) throws IOException { } private void writeString ( String str ) throws IOException { } public JSONObject readMessage ( ) throws IOException { } private String readString ( ) throws IOException { StringBuilder line = new StringBuilder ( ) ; while ( true ) { String subline = processOut . readLine ( ) ; if ( subline == null ) <START_BUG> throw new RuntimeException ( "Pipe<seq2seq4repair_space>to<seq2seq4repair_space>subprocess<seq2seq4repair_space>seems<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>broken!" ) ; <END_BUG> if ( subline . equals ( "end" ) ) { break ; } if ( ( line . length ( ) ) != 0 ) { line . append ( "\n" ) ; } line . append ( subline ) ; } return line . toString ( ) ; } }

Fix:
throw new RuntimeException ( ( "Pipe<seq2seq4repair_space>to<seq2seq4repair_space>subprocess<seq2seq4repair_space>seems<seq2seq4repair_space>to<seq2seq4repair_space>be<seq2seq4repair_space>broken!<seq2seq4repair_space>Currently<seq2seq4repair_space>read<seq2seq4repair_space>output:<seq2seq4repair_space>" + ( line . toString ( ) ) ) ) ;
Buggy code:
class ClasspathDirectory extends ClasspathLocation { String binaryPath ; SimpleLookupTable missingPackages ; SimpleLookupTable directoryCache ; ClasspathDirectory ( String binaryPath ) { } void cleanup ( ) { } String [ ] directoryList ( String pathPrefix , char [ ] [ ] compoundName , char [ ] packageName ) { } public boolean equals ( Object o ) { if ( ( this ) == o ) return true ; if ( ! ( o instanceof ClasspathDirectory ) ) return false ; <START_BUG> return binaryPath . equals ( ( ( ClasspathDirectory ) ( o ) ) . binaryPath ) ; <END_BUG> } boolean exists ( String pathPrefix , String filename , char [ ] [ ] packageName ) { } NameEnvironmentAnswer findClass ( char [ ] className , char [ ] [ ] packageName ) { } boolean isPackage ( char [ ] [ ] compoundName , char [ ] packageName ) { } void reset ( ) { } public String toString ( ) { } }

Fix:
return binaryPath . equalsIgnoreCase ( ( ( ClasspathDirectory ) ( o ) ) . binaryPath ) ;
Buggy code:
public class NormalizingPlyReader implements PlyReader { private final RandomPlyReader plyReader ; private final NormalMode normalMode ; private final TexGenStrategy texGenStrategy ; private final boolean generateNormals ; private final List < ElementType > elementTypes ; public NormalizingPlyReader ( final PlyReader plyReader , final TesselationMode tesselationMode , final NormalMode normalMode , final TextureMode textureMode ) { } public NormalizingPlyReader ( final PlyReader plyReader , final TesselationMode tesselationMode , final NormalMode normalMode , final TextureMode textureMode , final Axis x , final Axis y , final Axis z ) { } private static ElementType addNormalProps ( final ElementType sourceType ) { } private static ElementType addTextureProps ( final ElementType sourceType ) { } @ Override public List < ElementType > getElementTypes ( ) { } @ Override public int getElementCount ( final String elementType ) { } @ Override public ElementReader nextElementReader ( ) throws IOException { RandomElementReader reader = plyReader . nextElementReader ( ) ; if ( reader == null ) { return reader ; } if ( ! ( reader . getElementType ( ) . getName ( ) . equals ( "vertex" ) ) ) { return reader ; } if ( generateNormals ) { RandomElementReader faces = plyReader . getElementReader ( "face" ) ; NormalGenerator generator = new NormalGenerator ( ) ; if ( ( normalMode ) == ( NormalMode . ADD_NORMALS_CW ) ) { <START_BUG> generator . setCounterClockwise ( true ) ; <END_BUG> } generator . generateNormals ( reader . duplicate ( ) , faces ) ; } RectBounds bounds = new RectBounds ( ) ; if ( ( texGenStrategy ) != null ) { ElementReader boundsReader = reader . duplicate ( ) ; for ( Element element = boundsReader . readElement ( ) ; element != null ; element = boundsReader . readElement ( ) ) { bounds . addPoint ( element . getDouble ( "x" ) , element . getDouble ( "y" ) , element . getDouble ( "z" ) ) ; } ElementReader texReader = reader . duplicate ( ) ; for ( Element element = texReader . readElement ( ) ; element != null ; element = texReader . readElement ( ) ) { texGenStrategy . generateCoordinates ( element , bounds ) ; } } return reader ; } @ Override public void close ( ) throws IOException { } }

Fix:
generator . setCounterClockwise ( false ) ;
Buggy code:
public class CompositeNamespace extends Namespace { private static final long serialVersionUID = - 4774766051014928510L ; public static final String NAME = "ecf.namespace.composite" ; <START_BUG> public ID createInstance ( Object [ ] parameters ) { <END_BUG> if ( ( ( parameters == null ) || ( ( parameters . length ) < 1 ) ) || ( ( parameters . length ) > 2 ) ) { throw new IDCreateException ( Messages . CompositeNamespace_WrongParameterCount ) ; } else if ( ( parameters [ 0 ] ) instanceof String ) { return new CompositeServiceID ( this , new ServiceTypeID ( this , ( ( String ) ( parameters [ 0 ] ) ) ) , ( ( String ) ( parameters [ 1 ] ) ) ) ; } else if ( ( parameters [ 0 ] ) instanceof IServiceTypeID ) { return new CompositeServiceID ( this , ( ( IServiceTypeID ) ( parameters [ 0 ] ) ) , ( ( String ) ( parameters [ 1 ] ) ) ) ; } else { throw new IDCreateException ( Messages . CompositeNamespace_WrongParameters ) ; } } public String getScheme ( ) { } }

Fix:
public ID createInstance ( final Object [ ] parameters ) {
Buggy code:
public class WicketMessageResolver implements IComponentResolver { 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 ( ) ) && ( ( wtag . getNamespace ( ) ) != null ) ) { 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" ) ; } <START_BUG> final String value = container . getApplication ( ) . getLocalizer ( ) . getString ( messageKey , container , "" ) ; <END_BUG> final String id = "_message_" + ( container . getPage ( ) . getAutoIndex ( ) ) ; Component component = null ; if ( ( value != null ) && ( ( value . trim ( ) . length ( ) ) > 0 ) ) { component = new WicketMessageResolver . MyLabel ( id , value ) ; } else { component = new WebMarkupContainer ( id ) ; } component . setRenderBodyOnly ( container . getApplicationSettings ( ) . getStripWicketTags ( ) ) ; container . autoAdd ( component ) ; 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:
final String value = container . getApplication ( ) . getMarkupSettings ( ) . getLocalizer ( ) . getString ( messageKey , container , "" ) ;