nus-yam/ex-repair huggingface dataset:
Buggy code:
public class DoubleGeneMutator extends Mutator < LinearGenomeIndividual < DoubleGene > , DoubleGene > { public static final String P_GAUSSIAN_STD = "gaussianStd" ; public static final String P_RANDOM = "random" ; public static final String P_MUTATION_RATE = "mutationRate" ; public static final String P_DEFAULT_MAX_VALUE = "defaultMaxValue" ; public static final String P_DEFAULT_MIN_VALUE = "defaultMinValue" ; public static final String P_MAX_VALUES = "maxValues" ; public static final String P_MIN_VALUES = "minValues" ; public static final String P_NUM_DIMENSIONS = "dimensions" ; public static final int HARDBOUND_ATTEMPTS = 10000 ; private final double mutationRate ; private final Random random ; private final double gaussianStd ; private final Option < double [ ] > maxValues ; private final Option < double [ ] > minValues ; public DoubleGeneMutator ( final Parameters parameters , final String base ) { } private boolean usingHardBounds ( ) { } private DoubleGene mutate ( final DoubleGene gene , final int i ) { <START_BUG> if ( usingHardBounds ( ) ) <END_BUG> return new DoubleGene ( ( ( gene . value ) + ( ( Misc . gaussianSample ( random ) ) * ( gaussianStd ) ) ) ) ; for ( int attempt = 0 ; attempt < ( DoubleGeneMutator . HARDBOUND_ATTEMPTS ) ; attempt ++ ) { final double newValue = ( gene . value ) + ( ( Misc . gaussianSample ( random ) ) * ( gaussianStd ) ) ; if ( ( newValue <= ( maxValues . get ( ) [ i ] ) ) && ( newValue >= ( minValues . get ( ) [ i ] ) ) ) return new DoubleGene ( newValue ) ; } Logger . getLogger ( this . getClass ( ) . getSimpleName ( ) ) . log ( Level . WARNING , String . format ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>find<seq2seq4repair_space>a<seq2seq4repair_space>valid<seq2seq4repair_space>gene<seq2seq4repair_space>value<seq2seq4repair_space>(i.e.<seq2seq4repair_space>on<seq2seq4repair_space>the<seq2seq4repair_space>range<seq2seq4repair_space>[%f,<seq2seq4repair_space>%f])<seq2seq4repair_space>after<seq2seq4repair_space>attempting<seq2seq4repair_space>%d<seq2seq4repair_space>Gaussian<seq2seq4repair_space>mutations<seq2seq4repair_space>on<seq2seq4repair_space>a<seq2seq4repair_space>single<seq2seq4repair_space>gene." , minValues . get ( ) [ i ] , maxValues . get ( ) [ i ] , DoubleGeneMutator . HARDBOUND_ATTEMPTS ) ) ; return gene ; } @ Override public LinearGenomeIndividual < DoubleGene > mutate ( final LinearGenomeIndividual < DoubleGene > ind ) { } @ Override public final boolean repOK ( ) { } @ Override public final String toString ( ) { } @ Override public final boolean equals ( final Object o ) { } @ Override public int hashCode ( ) { } }

Fix:
if ( ! ( usingHardBounds ( ) ) )
Buggy code:
public class TestUAX29URLEmailAnalyzer extends BaseTokenStreamTestCase { private Analyzer a = new org . apache . lucene . analysis . standard . UAX29URLEmailAnalyzer ( TEST_VERSION_CURRENT ) ; public void testHugeDoc ( ) throws IOException { } public void testArmenian ( ) throws Exception { } public void testAmharic ( ) throws Exception { } public void testArabic ( ) throws Exception { } public void testAramaic ( ) throws Exception { } public void testBengali ( ) throws Exception { } public void testFarsi ( ) throws Exception { } public void testGreek ( ) throws Exception { } public void testThai ( ) throws Exception { } public void testLao ( ) throws Exception { } public void testTibetan ( ) throws Exception { } public void testChinese ( ) throws Exception { } public void testEmpty ( ) throws Exception { } public void testLUCENE1545 ( ) throws Exception { } public void testAlphanumericSA ( ) throws Exception { } public void testDelimitersSA ( ) throws Exception { } public void testApostrophesSA ( ) throws Exception { } public void testNumericSA ( ) throws Exception { } public void testTextWithNumbersSA ( ) throws Exception { } public void testVariousTextSA ( ) throws Exception { } public void testKoreanSA ( ) throws Exception { } public void testOffsets ( ) throws Exception { } public void testTypes ( ) throws Exception { } public void testSupplementary ( ) throws Exception { } public void testKorean ( ) throws Exception { } public void testJapanese ( ) throws Exception { } public void testCombiningMarks ( ) throws Exception { } public void testBasicEmails ( ) throws Exception { } public void testMailtoSchemeEmails ( ) throws Exception { } public void testBasicURLs ( ) throws Exception { } public void testRandomStrings ( ) throws Exception { <START_BUG> checkRandomData ( random ( ) , new org . apache . lucene . analysis . standard . UAX29URLEmailAnalyzer ( TEST_VERSION_CURRENT ) , ( 10000 * ( RANDOM_MULTIPLIER ) ) ) ; <END_BUG> } }

Fix:
checkRandomData ( random ( ) , new org . apache . lucene . analysis . standard . UAX29URLEmailAnalyzer ( TEST_VERSION_CURRENT ) , ( 1000 * ( RANDOM_MULTIPLIER ) ) ) ;
Buggy code:
public class AttrImpl extends NodeImpl implements Attr { static final long serialVersionUID = - 4421396439224009670L ; protected boolean owned ; protected boolean specified = true ; protected String namespaceURI ; protected String prefix ; protected String localName ; protected AttrImpl ( DocumentImpl ownerDocument , String name ) { } protected AttrImpl ( DocumentImpl ownerDocument , String namespaceURI , String qualifiedName ) { } public short getNodeType ( ) { } public void setNodeValue ( String value ) throws DOMException { } public String getNodeValue ( ) { } public Node getParentNode ( ) { } public String getName ( ) { } public void setValue ( String value ) { } public String getValue ( ) { } public boolean getSpecified ( ) { } public Element getElement ( ) { } public Element getOwnerElement ( ) { } public String getNamespaceURI ( ) { } public String getPrefix ( ) { } public void setPrefix ( String prefix ) throws DOMException { if ( syncData ) { synchronizeData ( ) ; } <START_BUG> if ( ! ( DocumentImpl . isXMLName ( prefix ) ) ) { <END_BUG> throw new DOMExceptionImpl ( DOMException . INVALID_CHARACTER_ERR , "INVALID_CHARACTER_ERR" ) ; } this . prefix = prefix ; this . name = ( prefix + ":" ) + ( localName ) ; } public String getLocalName ( ) { } public void setSpecified ( boolean arg ) { } public String toString ( ) { } }

Fix:
if ( ( ownerDocument . errorChecking ) && ( ! ( DocumentImpl . isXMLName ( prefix ) ) ) ) {
Buggy code:
public abstract class IndentTree extends Tree { private ListView visibleTreePathTable ; public IndentTree ( final String componentName , final TreeModel model ) { } public IndentTree ( final String componentName , final TreeModel model , final boolean makeTreeModelUnique ) { } public IndentTree ( final String componentName , TreeStateCache treeState ) { } protected final void applySelectedPaths ( TreeStateCache treeState ) { } protected final ListView newVisibleTreePathListView ( Model model ) { } private final TreeNodeLink createJunctionLink ( TreeNodeModel node ) { } protected abstract String getJunctionImageName ( TreeNodeModel node ) { } protected void junctionLinkClicked ( TreeNodeModel node ) { } private final TreeNodeLink createNodeLink ( TreeNodeModel node ) { } protected abstract String getNodeLabel ( TreeNodeModel node ) { } protected abstract String getNodeImageName ( TreeNodeModel node ) { } protected void nodeLinkClicked ( TreeNodeModel node ) { } protected boolean equals ( TreePath path , TreePath selectedPath ) { } protected String getCSSClassForSelectedRow ( ) { } protected String getCSSClassForRow ( ) { } private final class VisibleTreePathListView extends ListView { public VisibleTreePathListView ( String name , IModel model ) { } protected void populateItem ( ListItem listItem ) { TreeNodeModel treeNodeModel = ( ( TreeNodeModel ) ( listItem . getModelObject ( ) ) ) ; int level = treeNodeModel . getLevel ( ) ; List spacerList = new ArrayList ( level ) ; for ( int i = 0 ; i < level ; i ++ ) { spacerList . add ( treeNodeModel ) ; } listItem . add ( new IndentTree . SpacerList ( "spacers" , spacerList ) ) ; HtmlContainer nodeContainer = new HtmlContainer ( "node" ) ; Serializable userObject = treeNodeModel . getUserObject ( ) ; if ( userObject == null ) { <START_BUG> throw new RuntimeException ( "userObject<seq2seq4repair_space>==<seq2seq4repair_space>null" ) ; <END_BUG> } TreeNodeLink expandCollapsLink = IndentTree . this . createJunctionLink ( treeNodeModel ) ; nodeContainer . add ( expandCollapsLink ) ; TreeNodeLink selectLink = IndentTree . this . createNodeLink ( treeNodeModel ) ; nodeContainer . add ( selectLink ) ; listItem . add ( nodeContainer ) ; listItem . add ( new ComponentTagAttributeModifier ( "class" , true , new IndentTree . SelectedPathReplacementModel ( treeNodeModel ) ) ) ; } } private final class SelectedPathReplacementModel extends Model { private final TreeNodeModel treeNodeModel ; public SelectedPathReplacementModel ( TreeNodeModel treeNodeModel ) { } public Object getObject ( ) { } } private final class SpacerList extends ListView { public SpacerList ( String componentName , List list ) { } protected void populateItem ( ListItem listItem ) { } } }

Fix:
throw new RuntimeException ( "User<seq2seq4repair_space>object<seq2seq4repair_space>cannot<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ;
Buggy code:
public class AdaptiveNeighborhood extends SequenceNeighborhood { private Random random ; private int sum ; public AdaptiveNeighborhood ( long seed , INeighbor ... neighbors ) { } @ Override public void recordSolution ( ) { } @ Override protected void nextNeighbor ( ) { int r = random . nextInt ( sum ) ; for ( int i = 0 ; i < ( count ) ; i ++ ) { r -= ( counters [ i ] ) + 1 ; <START_BUG> if ( r <= 0 ) { <END_BUG> who = i ; return ; } } } }

Fix:
if ( r < 0 ) {
Buggy code:
public final class Compiler { private Compiler ( ) { } public static final String JAVA_EXT = ".java" ; private static final String CLASS_EXT = ".class" ; private static URI toURI ( final String name ) { } private static URI uri ( final JavaFileManager . Location location , final String packageName , final String relativeName ) { } private static final class JavaFileObjectImpl extends SimpleJavaFileObject { private ByteArrayOutputStream byteCode ; private final CharSequence source ; JavaFileObjectImpl ( final String baseName , final CharSequence source ) { } JavaFileObjectImpl ( final String name , final JavaFileObject . Kind kind ) { } @ Override public CharSequence getCharContent ( final boolean ignoreEncodingErrors ) { } @ Override public InputStream openInputStream ( ) { } @ Override public OutputStream openOutputStream ( ) { } byte [ ] getByteCode ( ) { } } private static final class ClassLoaderImpl extends ClassLoader { final Map < String , JavaFileObject > classes = new HashMap < > ( ) ; ClassLoaderImpl ( final ClassLoader parentClassLoader ) { } @ Override protected Class < ? > findClass ( final String qualifiedClassName ) throws ClassNotFoundException { } @ Override public InputStream getResourceAsStream ( final String name ) { } } private static final class FileManagerImpl extends ForwardingJavaFileManager < JavaFileManager > { private final Compiler . ClassLoaderImpl classLoader ; private final Map < URI , JavaFileObject > fileObjects = new HashMap < > ( ) ; FileManagerImpl ( final JavaFileManager fileManager , final Compiler . ClassLoaderImpl classLoader ) { } void putFileForInput ( final String packageName , final String relativeName , final JavaFileObject file ) { } @ Override public FileObject getFileForInput ( final JavaFileManager . Location location , final String packageName , final String relativeName ) throws IOException { } @ Override public JavaFileObject getJavaFileForOutput ( final JavaFileManager . Location location , final String qualifiedName , final JavaFileObject . Kind kind , final FileObject outputFile ) { } @ Override public ClassLoader getClassLoader ( final JavaFileManager . Location location ) { } @ Override public String inferBinaryName ( final JavaFileManager . Location loc , final JavaFileObject file ) { } @ Override public Iterable < JavaFileObject > list ( final JavaFileManager . Location location , final String packageName , final Set < JavaFileObject . Kind > kinds , final boolean recurse ) throws IOException { } } private static String toString ( final String reason , final DiagnosticCollector < JavaFileObject > diagnostics ) { } public static ClassLoader compile ( final ClassLoader parentClassLoader , final Map < String , CharSequence > classes , final String ... options ) { } public static String readFile ( final File source , final Charset charset ) throws IOException { try ( RandomAccessFile file = new RandomAccessFile ( source , "r" ) ) { final byte [ ] bytes = new byte [ ( ( int ) ( file . length ( ) ) ) ] ; <START_BUG> file . read ( bytes ) ; <END_BUG> return new String ( bytes , charset ) ; } } }

Fix:
file . readFully ( bytes ) ;
Buggy code:
public class InterpreterTest { @ Test public void testSimple ( ) throws Exception { } @ Test public void testError ( ) throws Exception { } private void testCase ( String input , String output ) throws Exception { TestUtils . RedirectStdinToString ( input ) ; ByteArrayOutputStream os = TestUtils . RedirectStdoutToString ( ) ; <START_BUG> Interpreter . Main ( new String [ ] { } ) ; <END_BUG> assertEquals ( os . toString ( ) , output ) ; } No newline ; at end ; of file ; }

Fix:
Interpreter . main ( new String [ ] { } ) ;
Buggy code:
public class UserManagerImpl extends AbstractDAOManagerImpl implements UserManager { public UserManagerImpl ( KeyspaceManager keyspaceManager ) { } @ Override public UserID makeUserID ( String idString ) { } @ Override public UserDAO getUser ( UserID userID ) throws NoSuchUserException { } @ Override public UsernameDAO getUsername ( String username ) throws NoSuchUserException { List < NamedColumn < String , MillisTimestamp , String , ? > > list = new ArrayList < NamedColumn < String , MillisTimestamp , String , ? > > ( 1 ) ; list . add ( USER_ID ) ; SliceQuery < String , MillisTimestamp , String > query = USERS_BY_NAME . createSliceQuery ( getKeyspaceManager ( ) , username , list ) ; QueryResult < ColumnSlice < MillisTimestamp , String > > queryResult = query . execute ( ) ; ColumnSlice < MillisTimestamp , String > cs = queryResult . get ( ) ; try { return new net . retakethe . policyauction . data . impl . dao . UsernameDAOImpl ( getNonNullColumn ( cs , USER_ID ) , username ) ; } catch ( NoSuchColumnException e ) { <START_BUG> throw new RuntimeException ( ( "Invalid<seq2seq4repair_space>username<seq2seq4repair_space>record<seq2seq4repair_space>for<seq2seq4repair_space>key<seq2seq4repair_space>" + username ) , e ) ; <END_BUG> } } @ Override public UserPendingDAO getUserPending ( String email ) throws NoSuchUserException { } @ Override public UserDAO createUser ( ) { } @ Override public UserDAO activateUser ( UserDAO user ) { } @ Override public List < UserDAO > getAllUsers ( ) { } @ Override public void update ( UserDAO user ) { } @ Override public void persist ( UserDAO user ) { } private void saveNewUser ( UserDAO user ) { } private void saveMinimalUserDAO ( UserDAO user ) { } private void saveUserDAO ( UserDAO user ) { } private void saveUsername ( UserDAO user ) { } private void saveUserRoles ( UserDAO user ) { } @ Override public void deleteUser ( UserDAO user ) { } @ Override public void deleteUserPending ( UserDAO user ) { } @ Override public List < UserRole > getUserRoles ( UserID userID ) throws NoSuchUserException { } private List < UserRole > getDefaultUserRoles ( ) { } }

Fix:
throw new NoSuchUserException ( ( "Invalid<seq2seq4repair_space>username<seq2seq4repair_space>record<seq2seq4repair_space>for<seq2seq4repair_space>key<seq2seq4repair_space>" + username ) , e ) ;
Buggy code:
public class WelcomeActivity extends BealderSdkActivity { @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; <START_BUG> createBealder ( "3" , "9de400d31369718b4e827054c1180c5b" , "B9407F30-F5F8-466E-AFF9-25556B57FE6D" ) ; <END_BUG> setContentView ( activity_welcome ) ; SharedPreferences settings = getPreferences ( MODE_PRIVATE ) ; if ( ! ( settings . contains ( "hasShownTutorial" ) ) ) { displayTutorial ( ) ; SharedPreferences . Editor settingsEditor = settings . edit ( ) ; settingsEditor . putBoolean ( "hasShownTutorial" , true ) ; settingsEditor . commit ( ) ; } Button displayTutorialButton = ( ( Button ) ( findViewById ( display_tutorial ) ) ) ; displayTutorialButton . setOnClickListener ( new View . OnClickListener ( ) { @ Override public void onClick ( View view ) { displayTutorial ( ) ; } } ) ; new MixinMenuActivity ( ) . addMenuListeners ( this ) ; } public void displayTutorial ( ) { } }

Fix:
createBealder ( "8" , "8c7bcad00a2beb41414aaeeb69276efd" , "B9407F30-F5F8-466E-AFF9-25556B57FE6D" ) ;
Buggy code:
public class RecipeAddItemView extends LinearLayout { private static final int PADDING = 15 ; private TextView mTitleView ; private ImageButton mAddButton ; private Context mContext ; public RecipeAddItemView ( Context context ) { } public RecipeAddItemView ( Context context , AttributeSet attrs ) { } public RecipeAddItemView ( Context context , AttributeSet attrs , int defStyleAttr ) { } private void initRecipeAddItemView ( Context context ) { setOrientation ( HORIZONTAL ) ; setPadding ( RecipeAddItemView . PADDING , RecipeAddItemView . PADDING , RecipeAddItemView . PADDING , RecipeAddItemView . PADDING ) ; mContext = context ; mTitleView = new TextView ( context , null , attr . textAppearanceLarge ) ; mTitleView . setText ( recipe ) ; mAddButton = new ImageButton ( context , null , attr . borderlessButtonStyle ) ; mAddButton . setImageDrawable ( context . getResources ( ) . getDrawable ( ic_add_box_black_24dp ) ) ; mAddButton . setMinimumWidth ( 1 ) ; mAddButton . setMaxWidth ( 10 ) ; mAddButton . setOnClickListener ( new OnClickListener ( ) { @ Override public void onClick ( View v ) { mAddButton . setImageDrawable ( mContext . getResources ( ) . getDrawable ( ic_check_box_black_24dp ) ) ; mAddButton . setEnabled ( false ) ; Toast . makeText ( mContext , "Recipe<seq2seq4repair_space>added<seq2seq4repair_space>to<seq2seq4repair_space>meal" , LENGTH_SHORT ) . show ( ) ; } } ) ; final LayoutParams titleParams = new LayoutParams ( LayoutParams . MATCH_PARENT , LayoutParams . WRAP_CONTENT , 0.9F ) ; <START_BUG> titleParams . gravity = ( Gravity . CENTER_VERTICAL ) | ( Gravity . LEFT ) ; <END_BUG> addView ( mTitleView , titleParams ) ; addView ( mAddButton , new LayoutParams ( LayoutParams . WRAP_CONTENT , LayoutParams . WRAP_CONTENT , 0.1F ) ) ; } public void setTitle ( @ NonNull String title ) { } }

Fix:
titleParams . gravity = ( Gravity . CENTER_VERTICAL ) | ( Gravity . START ) ;
Buggy code:
public class WicketLinkResolver implements IComponentResolver { private static final long serialVersionUID = 1L ; public boolean resolve ( final MarkupContainer container , final MarkupStream markupStream , final ComponentTag tag ) { if ( tag . isLinkTag ( ) ) { final String id = ( ( Component . AUTO_COMPONENT_PREFIX ) + "_link_" ) + ( container . getPage ( ) . getAutoIndex ( ) ) ; final Component component = new WebMarkupContainer ( container , id ) { private static final long serialVersionUID = 1L ; @ Override public boolean isTransparentResolver ( ) { return true ; } } ; <START_BUG> component . autoAdded ( ) ; <END_BUG> return true ; } return false ; } }

Fix:
component . render ( markupStream ) ;
Buggy code:
public class TestTermQueryPrefixGridStrategy extends SpatialTestCase { @ Test public void testNGramPrefixGridLosAngeles ( ) throws IOException { SimpleSpatialFieldInfo fieldInfo = new SimpleSpatialFieldInfo ( "geo" ) ; SpatialContext ctx = SimpleSpatialContext . GEO_KM ; TermQueryPrefixTreeStrategy prefixGridStrategy = new TermQueryPrefixTreeStrategy ( new org . apache . lucene . spatial . prefix . tree . QuadPrefixTree ( ctx ) ) ; Shape point = new PointImpl ( ( - 118.24368 ) , 34.05223 ) ; Document losAngeles = new Document ( ) ; <START_BUG> losAngeles . add ( new org . apache . lucene . document . Field ( "name" , "Los<seq2seq4repair_space>Angeles" , StringField . TYPE_STORED ) ) ; <END_BUG> losAngeles . add ( prefixGridStrategy . createField ( fieldInfo , point , true , true ) ) ; addDocumentsAndCommit ( Arrays . asList ( losAngeles ) ) ; SpatialArgsParser spatialArgsParser = new SpatialArgsParser ( ) ; } }

Fix:
losAngeles . add ( new org . apache . lucene . document . StringField ( "name" , "Los<seq2seq4repair_space>Angeles" , Store . YES ) ) ;
Buggy code:
public class BatchMoveLineHandler extends CommandHandlerWithHelp { public BatchMoveLineHandler ( ) { } @ Override public boolean isAvailable ( CommandContext ctx ) { } @ Override protected void doHandle ( CommandContext ctx ) throws CommandFormatException { BatchManager batchManager = ctx . getBatchManager ( ) ; if ( ! ( batchManager . isBatchActive ( ) ) ) { ctx . printLine ( "No<seq2seq4repair_space>active<seq2seq4repair_space>batch." ) ; return ; } Batch batch = batchManager . getActiveBatch ( ) ; final int batchSize = batch . size ( ) ; if ( batchSize == 0 ) { ctx . printLine ( "The<seq2seq4repair_space>batch<seq2seq4repair_space>is<seq2seq4repair_space>empty." ) ; return ; } <START_BUG> List < String > arguments = ctx . getParsedArguments ( ) . getOtherProperties ( ) ; <END_BUG> if ( arguments . isEmpty ( ) ) { ctx . printLine ( "Missing<seq2seq4repair_space>line<seq2seq4repair_space>number." ) ; return ; } if ( ( arguments . size ( ) ) != 2 ) { ctx . printLine ( ( "Expected<seq2seq4repair_space>two<seq2seq4repair_space>arguments<seq2seq4repair_space>but<seq2seq4repair_space>received:<seq2seq4repair_space>" + arguments ) ) ; return ; } String intStr = arguments . get ( 0 ) ; final int lineNumber ; try { lineNumber = Integer . parseInt ( intStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>line<seq2seq4repair_space>number<seq2seq4repair_space>'" + intStr ) + "':<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } if ( ( lineNumber < 1 ) || ( lineNumber > batchSize ) ) { ctx . printLine ( ( ( ( lineNumber + "<seq2seq4repair_space>isn't<seq2seq4repair_space>in<seq2seq4repair_space>range<seq2seq4repair_space>[1.." ) + batchSize ) + "]." ) ) ; return ; } intStr = arguments . get ( 1 ) ; final int toLineNumber ; try { toLineNumber = Integer . parseInt ( intStr ) ; } catch ( NumberFormatException e ) { ctx . printLine ( ( ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>parse<seq2seq4repair_space>line<seq2seq4repair_space>number<seq2seq4repair_space>'" + intStr ) + "':<seq2seq4repair_space>" ) + ( e . getLocalizedMessage ( ) ) ) ) ; return ; } if ( ( toLineNumber < 1 ) || ( toLineNumber > batchSize ) ) { ctx . printLine ( ( ( ( toLineNumber + "<seq2seq4repair_space>isn't<seq2seq4repair_space>in<seq2seq4repair_space>range<seq2seq4repair_space>[1.." ) + batchSize ) + "]." ) ) ; return ; } batch . move ( ( lineNumber - 1 ) , ( toLineNumber - 1 ) ) ; } @ Override public boolean hasArgument ( int index ) { } }

Fix:
List < String > arguments = ctx . getParsedCommandLine ( ) . getOtherProperties ( ) ;
Buggy code:
public class EditorSashContainer extends PartSashContainer { static final String DEFAULT_WORKBOOK_ID = "DefaultEditorWorkbook" ; private ArrayList editorWorkbooks = new ArrayList ( 3 ) ; private EditorStack activeEditorWorkbook ; private DropTarget dropTarget ; public EditorSashContainer ( String editorId , WorkbenchPage page , Composite parent ) { } public void addEditor ( EditorPane pane , EditorStack stack ) { } protected void addChild ( RelationshipInfo info ) { } public void updateStackButtons ( ) { } public EditorStack getUpperRightEditorStack ( LayoutPart [ ] stacks ) { } protected void childAdded ( LayoutPart child ) { } protected void childRemoved ( LayoutPart child ) { } protected EditorStack createDefaultWorkbook ( ) { } protected Composite createParent ( Composite parentWidget ) { } public void dispose ( ) { } protected void disposeParent ( ) { } public EditorStack getActiveWorkbook ( ) { } public String getActiveWorkbookID ( ) { } public ArrayList getEditorWorkbooks ( ) { } public int getEditorWorkbookCount ( ) { } protected boolean isActiveWorkbook ( EditorStack workbook ) { } public void findSashes ( LayoutPart pane , PartPane . Sashes sashes ) { } public void removeAllEditors ( ) { } public void removeEditor ( EditorPane pane ) { } public IStatus restoreState ( IMemento memento ) { } public IStatus saveState ( IMemento memento ) { } public void setActiveWorkbook ( EditorStack newWorkbook , boolean hasFocus ) { } public void setActiveWorkbookFromID ( String id ) { } public EditorStack getWorkbookFromID ( String id ) { } public void updateTabList ( ) { } public void createControl ( Composite parent ) { } private void addDropSupport ( ) { } DropTarget getDropTarget ( ) { } public boolean isCompressible ( ) { } public boolean isStackType ( LayoutPart toTest ) { } public boolean isPaneType ( LayoutPart toTest ) { } protected PartStack createStack ( ) { } protected void setVisiblePart ( ILayoutContainer container , LayoutPart visiblePart ) { } protected LayoutPart getVisiblePart ( ILayoutContainer container ) { } public LayoutPart pickPartToZoom ( ) { } public IStatus restorePresentationState ( IMemento areaMem ) { for ( Iterator i = getEditorWorkbooks ( ) . iterator ( ) ; i . hasNext ( ) ; ) { final EditorStack workbook = ( ( EditorStack ) ( i . next ( ) ) ) ; final IMemento memento = workbook . getSavedPresentationState ( ) ; if ( memento == null ) { continue ; } final PresentationSerializer serializer = new PresentationSerializer ( workbook . getPresentableParts ( ) ) ; StartupThreading . runWithoutExceptions ( new StartupRunnable ( ) { public void runWithException ( ) throws Throwable { workbook . getPresentation ( ) . restoreState ( serializer , memento ) ; } } ) ; } <START_BUG> return new Status ( IStatus . OK , PlatformUI . PLUGIN_ID , 0 , "" , null ) ; <END_BUG> } }

Fix:
return Status . OK_STATUS ;
Buggy code:
public abstract class Visualization extends JPanel { public abstract void setPosition ( long f ) { } public abstract void setAlternativeColorScheme ( boolean b ) { } public abstract void updateLayout ( ) { } public abstract Data getDataSource ( ) { } <START_BUG> public abstract JPanel getTrackVisualization ( ) ; <END_BUG> }

Fix:
public abstract TrackVisualization getTrackVisualization ( ) ;
Buggy code:
public class ScreenshotService extends Service { private Looper mServiceLooper ; private ScreenshotService . ServiceHandler mServiceHandler ; private Message msg ; private Intent intent ; private WebView webview ; private final class ServiceHandler extends Handler { public ServiceHandler ( Looper looper ) { } @ Override public void handleMessage ( final Message msg ) { webview = new WebView ( ScreenshotService . this ) ; <START_BUG> Toast . makeText ( ScreenshotService . this , "<seq2seq4repair_space>" , LENGTH_SHORT ) . show ( ) ; <END_BUG> webview . setDrawingCacheEnabled ( true ) ; webview . measure ( 600 , 400 ) ; webview . layout ( 0 , 0 , 600 , 400 ) ; webview . loadUrl ( intent . getStringExtra ( "origurl" ) ) ; webview . setWebViewClient ( new WebViewClient ( ) { @ Override public void onReceivedError ( WebView view , int errorCode , String description , String failingUrl ) { } @ Override public void onPageFinished ( WebView view , String url ) { new ScreenshotService . takeScreenshotTask ( ) . execute ( ) ; stopSelf ( ) ; } } ) ; } } private class takeScreenshotTask extends AsyncTask < Void , Void , Void > { @ Override protected Void doInBackground ( Void [ ] p1 ) { } } @ Override public void onCreate ( ) { } @ Override public int onStartCommand ( Intent intent , int flags , int startId ) { } @ Override public IBinder onBind ( Intent intent ) { } @ Override public void onDestroy ( ) { } }

Fix:
Toast . makeText ( ScreenshotService . this , "Save<seq2seq4repair_space>completed." , LENGTH_SHORT ) . show ( ) ;
Buggy code:
public class XinXinUtils { private static ShaPasswordEncoder shaPasswordEncoder = new ShaPasswordEncoder ( 256 ) ; public static String getEncodedPassword ( String password , String username ) { } public static < T > T getJavaObjectFromJsonString ( String jsonString , Class < T > classType ) { } public static ResponseVo makeGeneralErrorResponse ( Exception e ) { if ( e == null ) { return ResponseVo . newFailMessage ( "操作失败" ) ; } <START_BUG> ResponseVo errorResponseVo = ResponseVo . newFailMessage ( ( "你的操作在处理时发生了错误！<seq2seq4repair_space>异常的消息是<seq2seq4repair_space>：<seq2seq4repair_space>" + ( e . getMessage ( ) ) ) ) ; <END_BUG> return errorResponseVo ; } public static ResponseVo makeGeneralSuccessResponse ( ) { } public static User getDevelopmentUser ( ) { } public static void cleanUser ( User user ) { } public static Map < String , String > mergeDuplicateCompanyInOnePageFor138 ( List < OteCompanyURL > companyList ) { } public static Map < String , String > mergeDuplicateCompanyInOnePageForGanji ( List < GanjiCompanyURL > companyList ) { } public static Map < String , String > mergeDuplicateCompanyInOnePageFor58 ( List < FeCompanyURL > companyList ) { } public static boolean stringIsEmpty ( String str ) { } public static Date getStandardDate ( String dateString ) { } public static Date getStandardDate ( Date date ) { } public static Date getStandardSimpleDate ( Date date ) { } public static Date getNow ( ) { } public static String getSimpleTodayString ( ) { } public static boolean isUserHasRole ( String role ) { } public static String getCurrentUserName ( ) { } public static boolean checkIfCompanyIsStupid ( Company company ) { } public static String parseFEResourceId ( String url ) { } public static String parseCityUrl ( String url ) { } public static String getOteResourceIdFromUrl ( String href ) { } public static Object getFirstElementByXPath ( HtmlPage htmlPage , String xPath ) { } public static void main ( String [ ] args ) { } }

Fix:
ResponseVo errorResponseVo = ResponseVo . newFailMessage ( ( "你的操作在处理时发生了错误." + ( e . getMessage ( ) ) ) ) ;
Buggy code:
@ Service public class UserITDefaultDetailServiceImpl implements UserITDefaultDetailService { @ Autowired private UserITDefaultDetailDao userITDefaultDetailDao ; @ Autowired private BaseService baseService ; @ Override @ Transactional ( readOnly = true , propagation = Propagation . REQUIRES_NEW ) public UserITDefaultDetailDto getITDefaultDetailDto ( final GdeUser user ) { } @ Override @ Transactional ( readOnly = false , propagation = Propagation . REQUIRED , rollbackFor = Exception . class ) public void saveITDefaultDetail ( final UserITDefaultDetailDto dto , final GdeUser user ) { try { UserITDefaultDetail userITDefaultDetail ; <START_BUG> if ( ( dto != null ) && ( ( dto . getObjId ( ) ) == 0 ) ) { <END_BUG> userITDefaultDetail = userITDefaultDetailDao . getUserITDefaultDetail ( user . getId ( ) ) ; if ( userITDefaultDetail == null ) { userITDefaultDetail = new UserITDefaultDetail ( ) ; } } else { userITDefaultDetail = new UserITDefaultDetail ( ) ; } userITDefaultDetail . populateDetailFromDto ( dto , user ) ; userITDefaultDetail = userITDefaultDetailDao . saveOrMerge ( userITDefaultDetail ) ; dto . setObjId ( userITDefaultDetail . getId ( ) ) ; } catch ( Exception e ) { throw new GDEException ( e ) ; } } }

Fix:
if ( ( ( dto != null ) && ( ( dto . getObjId ( ) ) != null ) ) && ( ( dto . getObjId ( ) ) == 0 ) ) {
Buggy code:
public class DOMBuilderImpl extends AbstractDOMParser implements DOMBuilder { protected static final String NAMESPACES = ( Constants . SAX_FEATURE_PREFIX ) + ( Constants . NAMESPACES_FEATURE ) ; protected static final String VALIDATION_FEATURE = ( Constants . SAX_FEATURE_PREFIX ) + ( Constants . VALIDATION_FEATURE ) ; protected static final String XMLSCHEMA = ( Constants . XERCES_FEATURE_PREFIX ) + ( Constants . SCHEMA_VALIDATION_FEATURE ) ; protected static final String DYNAMIC_VALIDATION = ( Constants . XERCES_FEATURE_PREFIX ) + ( Constants . DYNAMIC_VALIDATION_FEATURE ) ; protected static final String XML_SCHEMA_VALIDATION = "http:////www.w3.org//2001//XMLSchema" ; protected static final String DTD_VALIDATION = "http:////www.w3.org//TR//REC-xml" ; protected String fSchemaType = DOMBuilderImpl . XML_SCHEMA_VALIDATION ; protected static final boolean DEBUG = false ; public DOMBuilderImpl ( String configuration , String schemaType ) { } public DOMBuilderImpl ( XMLParserConfiguration config ) { } public DOMBuilderImpl ( SymbolTable symbolTable ) { } public DOMBuilderImpl ( SymbolTable symbolTable , XMLGrammarPool grammarPool ) { } public void reset ( ) { super . reset ( ) ; if ( ( fSkippedElemStack ) != null ) { <START_BUG> fSkippedElemStack . clear ( ) ; <END_BUG> } fRejectedElement . clear ( ) ; fFilterReject = false ; } public DOMEntityResolver getEntityResolver ( ) { } public void setEntityResolver ( DOMEntityResolver entityResolver ) { } public DOMErrorHandler getErrorHandler ( ) { } public void setErrorHandler ( DOMErrorHandler errorHandler ) { } public DOMBuilderFilter getFilter ( ) { } public void setFilter ( DOMBuilderFilter filter ) { } public void setFeature ( String name , boolean state ) throws DOMException { } public boolean canSetFeature ( String name , boolean state ) { } public boolean getFeature ( String name ) throws DOMException { } public Document parseURI ( String uri ) { } public Document parse ( DOMInputSource is ) throws Exception { } protected void initGrammarPool ( ) { } public void parseWithContext ( DOMInputSource is , Node cnode , short action ) throws DOMException { } XMLInputSource dom2xmlInputSource ( DOMInputSource is ) { } public void endDocument ( Augmentations augs ) throws XNIException { } }

Fix:
fSkippedElemStack . removeAllElements ( ) ;
Buggy code:
public class CustomCart { private static final CustomCart singelton = new CustomCart ( ) ; private final ShoppingCart cart ; private CustomCart ( ) { } public static CustomCart getCart ( ) { } public void addItem ( ShoppingItem sci ) { cart . fireShoppingCartChanged ( sci , true ) ; ShoppingItem existingItem = this . getFromCart ( sci . getProduct ( ) ) ; if ( existingItem == null ) { <START_BUG> cart . addItem ( sci ) ; <END_BUG> cart . fireShoppingCartChanged ( sci , true ) ; } else { existingItem . setAmount ( ( ( existingItem . getAmount ( ) ) + ( sci . getAmount ( ) ) ) ) ; cart . fireShoppingCartChanged ( existingItem , true ) ; } } public void addProduct ( Product p ) { } public void addProduct ( Product p , double d ) { } private ShoppingItem getFromCart ( Product p ) { } public void addOrderToCart ( Order order ) { } public void clear ( ) { } public List < ShoppingItem > getItems ( ) { } public double getTotal ( ) { } public void removeItem ( int index ) { } public void removeItem ( ShoppingItem sci ) { } public void removeProduct ( Product p ) { } public void addCartListener ( ShoppingCartListener scl ) { } public void removeCartListener ( ShoppingCartListener scl ) { } public void setItemAmount ( ShoppingItem sci , double newAmount ) { } }

Fix:
cart . addItem ( new ShoppingItem ( sci . getProduct ( ) , sci . getAmount ( ) ) ) ;
Buggy code:
public class Driver { static final long SEED = 0 ; public static void main ( String [ ] args ) { JFrame j = new JFrame ( ) ; Random r = new Random ( Driver . SEED ) ; ArrayList < MCQ > rgMCQ = null ; try { rgMCQ = MCQ . MCQInput ( "question.txt" ) ; } catch ( FileNotFoundException e ) { e . printStackTrace ( ) ; } MCQ q = rgMCQ . get ( r . nextInt ( rgMCQ . size ( ) ) ) ; <START_BUG> j . setSize ( 400 , 600 ) ; <END_BUG> j . setDefaultCloseOperation ( JFrame . EXIT_ON_CLOSE ) ; j . setContentPane ( new JScrollPane ( new Map ( rgMCQ , r ) ) ) ; j . setVisible ( true ) ; } }

Fix:
j . setSize ( 1200 , 800 ) ;
Buggy code:
public class Job extends Player { public static final List < String > AVAILABLEJOBS = Arrays . asList ( new String [ ] { "Fighter" , "Thief" , "Black<seq2seq4repair_space>Belt" , "Red<seq2seq4repair_space>Mage" , "Black<seq2seq4repair_space>Mage" , "White<seq2seq4repair_space>Mage" } ) ; protected String [ ] growth ; protected int [ ] [ ] magicGrowth ; protected List < String > spellList ; Player p ; private final String [ ] spriteNames = new String [ ] { "stand" , "walk" , "item" , "cast" , "victory" , "dead" } ; protected String jobname ; private String pathname ; public Job ( Player player , String name ) { } @ Override public void loadSprites ( ) { sprites = new Sprite [ spriteNames . length ] ; for ( int i = 0 ; i < ( spriteNames . length ) ; i ++ ) sprites [ i ] = new Sprite ( ( ( ( ( "actors//jobs//" + ( pathname ) ) + "//" ) + ( spriteNames [ i ] ) ) + ".png" ) ) ; <START_BUG> mapSelf = new Sprite ( ( ( "actors//jobs//jobs//" + ( pathname ) ) + "//mapwalk.png" ) , 2 , 4 ) ; <END_BUG> drawSprite = sprites [ 0 ] ; } public Sprite [ ] getSprites ( ) { } @ Override public void setState ( int i ) { } @ Override public int getState ( ) { } public String getJobName ( ) { } @ Override public void setName ( String string ) { } @ Override public String getName ( ) { } protected int getStr ( int lvl ) { } protected int getSpd ( int lvl ) { } protected int getInt ( int lvl ) { } protected int getLuck ( int lvl ) { } protected int getVit ( int lvl ) { } protected int getAcc ( int lvl ) { } protected int getMDef ( int lvl ) { } protected int getHP ( int lvl ) { } @ Override public void levelUp ( ) { } }

Fix:
mapSelf = new Sprite ( ( ( "actors//jobs//" + ( pathname ) ) + "//mapwalk.png" ) , 2 , 4 ) ;
Buggy code:
public class AsmElementFormatter { public static final String DECLARE_PRECEDENCE = "precedence" ; public static final String DECLARE_SOFT = "soft" ; public static final String DECLARE_PARENTS = "parents" ; public static final String DECLARE_WARNING = "warning" ; public static final String DECLARE_ERROR = "error" ; public static final String DECLARE_UNKNONWN = "<unknown<seq2seq4repair_space>declare>" ; public static final String POINTCUT_ABSTRACT = "<abstract<seq2seq4repair_space>pointcut>" ; public static final String POINTCUT_ANONYMOUS = "<anonymous<seq2seq4repair_space>pointcut>" ; public static final int MAX_MESSAGE_LENGTH = 18 ; public static final String DEC_LABEL = "declare" ; public void genLabelAndKind ( MethodDeclaration methodDeclaration , IProgramElement node ) { } private String genDecaLabel ( DeclareAnnotation deca ) { } private String genPrecedenceListLabel ( TypePatternList list ) { } private void setParameters ( MethodDeclaration md , IProgramElement pe ) { Argument [ ] argArray = md . arguments ; List names = new ArrayList ( ) ; List types = new ArrayList ( ) ; pe . setParameterNames ( names ) ; pe . setParameterTypes ( types ) ; if ( argArray == null ) return ; for ( int i = 0 ; i < ( argArray . length ) ; i ++ ) { String argName = new String ( argArray [ i ] . name ) ; String argType = argArray [ i ] . type . resolvedType . debugName ( ) ; <START_BUG> if ( acceptArgument ( argName , argType ) ) { <END_BUG> names . add ( argName ) ; types . add ( argType ) ; } } } private boolean acceptArgument ( String name , String type ) { } public String genTypePatternLabel ( TypePattern tp ) { } public String genDeclareMessage ( String message ) { } private String translatePointcutName ( String name ) { } }

Fix:
if ( acceptArgument ( argName , argArray [ i ] . type . toString ( ) ) ) {
Buggy code:
public class ASTParser { public static final int K_EXPRESSION = 1 ; public static final int K_STATEMENTS = 2 ; public static final int K_CLASS_BODY_DECLARATIONS = 4 ; public static final int K_COMPILATION_UNIT = 8 ; public static ASTParser newParser ( int level ) { } private final int apiLevel ; private int astKind ; private Map compilerOptions ; private boolean resolveBindings ; private boolean partial = false ; private int focalPointPosition ; private char [ ] rawSource = null ; private ICompilationUnit compilationUnitSource = null ; private IClassFile classFileSource = null ; private int sourceOffset = 0 ; private int sourceLength = - 1 ; private WorkingCopyOwner workingCopyOwner = DefaultWorkingCopyOwner . PRIMARY ; private IJavaProject project = null ; private String unitName = null ; ASTParser ( int level ) { } private void initializeDefaults ( ) { } public void setCompilerOptions ( Map options ) { } public void setResolveBindings ( boolean bindings ) { } public void setFocalPosition ( int position ) { } public void setKind ( int kind ) { } public void setSource ( char [ ] source ) { } public void setSource ( ICompilationUnit source ) { } public void setSource ( IClassFile source ) { } public void setSourceRange ( int offset , int length ) { } public void setWorkingCopyOwner ( WorkingCopyOwner owner ) { } public void setUnitName ( String unitName ) { } public void setProject ( IJavaProject project ) { } public ASTNode createAST ( IProgressMonitor monitor ) { } private ASTNode internalCreateAST ( IProgressMonitor monitor ) { } private ASTNode convert ( IProgressMonitor monitor , CompilationUnitDeclaration compilationUnitDeclaration , char [ ] source , boolean needToResolveBindings ) { BindingResolver resolver = null ; AST ast = AST . newAST ( this . apiLevel ) ; ast . setDefaultNodeFlag ( ASTNode . ORIGINAL ) ; CompilationUnit compilationUnit = null ; ASTConverter converter = new ASTConverter ( this . compilerOptions , needToResolveBindings , monitor ) ; if ( needToResolveBindings ) { <START_BUG> resolver = new DefaultBindingResolver ( compilationUnitDeclaration . scope ) ; <END_BUG> } else { resolver = new BindingResolver ( ) ; } ast . setBindingResolver ( resolver ) ; converter . setAST ( ast ) ; compilationUnit = converter . convert ( compilationUnitDeclaration , source ) ; compilationUnit . setLineEndTable ( compilationUnitDeclaration . compilationResult . lineSeparatorPositions ) ; ast . setDefaultNodeFlag ( 0 ) ; ast . setOriginalModificationCount ( ast . modificationCount ( ) ) ; return compilationUnit ; } private ASTNode internalCreateASTForKind ( ) { } private void propagateErrors ( ASTNode astNode , IProblem [ ] problems ) { } private void rootNodeToCompilationUnit ( AST ast , CompilationUnit compilationUnit , ASTNode node , RecordedParsingInformation recordedParsingInformation ) { } }

Fix:
resolver = new DefaultBindingResolver ( compilationUnitDeclaration . scope , ( ( this . compilationUnitSource ) == null ? null : this . compilationUnitSource . getOwner ( ) ) ) ;
Buggy code:
public class SizeRotatingFileHandlerAdd extends FileHandlerAdd { private static final long serialVersionUID = 3144252544518106859L ; private long rotateSize = ( 2L * 1024L ) * 1024L ; private int maxBackupIndex = 1 ; public SizeRotatingFileHandlerAdd ( final String name ) { } public long getRotateSize ( ) { } public void setRotateSize ( final long rotateSize ) { } public int getMaxBackupIndex ( ) { } public void setMaxBackupIndex ( final int maxBackupIndex ) { } protected AbstractHandlerElement < ? > createElement ( final String name ) { } protected < P > void applyUpdate ( final UpdateContext updateContext , final UpdateResultHandler < ? super Void , P > handler , final P param ) { try { <START_BUG> final BatchBuilder batchBuilder = updateContext . getBatchBuilder ( ) ; <END_BUG> final SizeRotatingFileHandlerService service = new SizeRotatingFileHandlerService ( ) ; final ServiceBuilder < Handler > serviceBuilder = batchBuilder . addService ( LogServices . handlerName ( getName ( ) ) , service ) ; final String relativeTo = getRelativeTo ( ) ; if ( relativeTo != null ) { serviceBuilder . addDependency ( AbstractPathService . pathNameOf ( relativeTo ) , String . class , service . getRelativeToInjector ( ) ) ; } service . setLevel ( Level . parse ( getLevelName ( ) ) ) ; final Boolean autoFlush = getAutoflush ( ) ; if ( autoFlush != null ) service . setAutoflush ( autoFlush . booleanValue ( ) ) ; try { service . setEncoding ( getEncoding ( ) ) ; } catch ( UnsupportedEncodingException e ) { handler . handleFailure ( e , param ) ; return ; } try { service . setPath ( getPath ( ) ) ; } catch ( FileNotFoundException e ) { handler . handleFailure ( e , param ) ; return ; } service . setFormatterSpec ( getFormatter ( ) ) ; service . setMaxBackupIndex ( maxBackupIndex ) ; service . setRotateSize ( rotateSize ) ; serviceBuilder . setInitialMode ( ACTIVE ) ; serviceBuilder . addListener ( new UpdateResultHandler . ServiceStartListener < P > ( handler , param ) ) ; serviceBuilder . install ( ) ; } catch ( Throwable t ) { handler . handleFailure ( t , param ) ; } } }

Fix:
final BatchBuilder batchBuilder = updateContext . getServiceTarget ( ) ;
Buggy code:
public class ModuleApplicationProcessorTestCase { static final ArchivePath MANIFEST = ArchivePaths . create ( "META-INF" , "MANIFEST.MF" ) ; @ Test public void testAddManifestToJavaArchive ( ) { } @ Test public void testAddManifestToWebArchive ( ) { } private void checkManifest ( Archive < ? > archive , ModuleApplicationArchiveProcessor processor ) { Node node = archive . get ( ModuleApplicationProcessorTestCase . MANIFEST ) ; Assert . assertNotNull ( node ) ; <START_BUG> Manifest mf = processor . getOrCreateManifest ( archive ) ; <END_BUG> Attributes attributes = mf . getMainAttributes ( ) ; String value = attributes . getValue ( "Dependencies" ) ; Set < String > deps = new HashSet < String > ( ) ; for ( String dep : value . split ( "," ) ) { deps . add ( dep . trim ( ) ) ; } Assert . assertEquals ( 7 , deps . size ( ) ) ; Assert . assertTrue ( deps . contains ( "org.jboss.arquillian.api" ) ) ; Assert . assertTrue ( deps . contains ( "org.jboss.arquillian.junit" ) ) ; Assert . assertTrue ( deps . contains ( "org.jboss.arquillian.spi" ) ) ; Assert . assertTrue ( deps . contains ( "org.jboss.modules" ) ) ; Assert . assertTrue ( deps . contains ( "org.jboss.msc" ) ) ; Assert . assertTrue ( deps . contains ( "org.jboss.shrinkwrap.api" ) ) ; Assert . assertTrue ( deps . contains ( "junit.junit" ) ) ; } }

Fix:
Manifest mf = ManifestUtils . getOrCreateManifest ( archive ) ;
Buggy code:
public class FormInput extends WicketExamplePage { private class InputForm extends Form < FormInputModel > { public InputForm ( final MarkupContainer parent , final String name ) { } @ Override public void onSubmit ( ) { } } private static final class LinesListView extends ListView { public LinesListView ( final MarkupContainer parent , final String id ) { } @ Override protected void populateItem ( final ListItem item ) { } } private final class LocaleChoiceRenderer extends ChoiceRenderer < Locale > { public LocaleChoiceRenderer ( ) { } @ Override public String getDisplayValue ( final Locale locale ) { } } private final class LocaleDropDownChoice extends DropDownChoice < Locale > { public LocaleDropDownChoice ( final MarkupContainer parent , final String id ) { } @ Override <START_BUG> public void onSelectionChanged ( final Object newSelection ) { <END_BUG> } @ Override protected boolean wantOnSelectionChangedNotifications ( ) { } } static final List < String > NUMBERS = Arrays . asList ( new String [ ] { "1" , "2" , "3" } ) ; private static final List < Locale > LOCALES = Arrays . asList ( new Locale [ ] { Locale . ENGLISH , new Locale ( "nl" ) , Locale . GERMAN , Locale . SIMPLIFIED_CHINESE , Locale . JAPANESE , new Locale ( "pt" , "BR" ) , new Locale ( "fa" , "IR" ) , new Locale ( "da" , "DK" ) , new Locale ( "th" ) , new Locale ( "ru" ) } ) ; private static final List < String > SITES = Arrays . asList ( new String [ ] { "The<seq2seq4repair_space>Server<seq2seq4repair_space>Side" , "Java<seq2seq4repair_space>Lobby" , "Java.Net" } ) ; public FormInput ( ) { } public void setLocale ( final Locale locale ) { } }

Fix:
public void onSelectionChanged ( final Locale newSelection ) {