nus-yam/ex-repair huggingface dataset:
Buggy code:
public class QueuelessThreadPoolAdd extends AbstractAddStepHandler implements DescriptionProvider { static final QueuelessThreadPoolAdd INSTANCE = new QueuelessThreadPoolAdd ( ) ; static final AttributeDefinition [ ] ATTRIBUTES = new AttributeDefinition [ ] { PoolAttributeDefinitions . KEEPALIVE_TIME , PoolAttributeDefinitions . MAX_THREADS , PoolAttributeDefinitions . PROPERTIES , PoolAttributeDefinitions . THREAD_FACTORY , PoolAttributeDefinitions . HANDOFF_EXECUTOR , PoolAttributeDefinitions . BLOCKING } ; static final AttributeDefinition [ ] RW_ATTRIBUTES = new AttributeDefinition [ ] { PoolAttributeDefinitions . KEEPALIVE_TIME , PoolAttributeDefinitions . MAX_THREADS , PoolAttributeDefinitions . BLOCKING } ; @ Override public ModelNode getModelDescription ( Locale locale ) { } @ Override protected void populateModel ( final ModelNode operation , final ModelNode model ) throws OperationFailedException { } @ Override protected void performRuntime ( final OperationContext context , final ModelNode operation , final ModelNode model , final ServiceVerificationHandler verificationHandler , final List < ServiceController < ? > > newControllers ) throws OperationFailedException { for ( final AttributeDefinition attribute : QueuelessThreadPoolAdd . ATTRIBUTES ) { <START_BUG> attribute . validateResolvedOperation ( model ) ; <END_BUG> } final QueuelessOperationParameters params = ThreadsSubsystemThreadPoolOperationUtils . parseQueuelessThreadPoolOperationParameters ( operation ) ; ServiceTarget target = context . getServiceTarget ( ) ; final ServiceName serviceName = ThreadsServices . executorName ( params . getName ( ) ) ; final QueuelessThreadPoolService service = new QueuelessThreadPoolService ( params . getMaxThreads ( ) . getScaledCount ( ) , params . isBlocking ( ) , params . getKeepAliveTime ( ) ) ; final ServiceBuilder < ManagedQueuelessExecutorService > serviceBuilder = target . addService ( serviceName , service ) ; ThreadsSubsystemThreadPoolOperationUtils . addThreadFactoryDependency ( params . getThreadFactory ( ) , serviceName , serviceBuilder , service . getThreadFactoryInjector ( ) , target , ( ( params . getName ( ) ) + "-threads" ) ) ; serviceBuilder . addListener ( verificationHandler ) ; serviceBuilder . install ( ) ; } }

Fix:
attribute . resolveModelAttribute ( context , model ) ;
Buggy code:
public final class EmptyAjaxRequestHandler implements IRequestHandler { private static final int HASH = 17 * 1542323 ; private static final EmptyAjaxRequestHandler instance = new EmptyAjaxRequestHandler ( ) ; private EmptyAjaxRequestHandler ( ) { } public static final EmptyAjaxRequestHandler getInstance ( ) { } public void respond ( IRequestCycle requestCycle ) { WebResponse response = ( ( WebResponse ) ( requestCycle . getResponse ( ) ) ) ; final String encoding = Application . get ( ) . getRequestCycleSettings ( ) . getResponseRequestEncoding ( ) ; response . setContentType ( ( "text//xml;<seq2seq4repair_space>charset=" + encoding ) ) ; <START_BUG> RequestUtils . disableCaching ( response ) ; <END_BUG> response . write ( "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"" ) ; response . write ( encoding ) ; response . write ( "\"?><ajax-response><//ajax-response>" ) ; } public void detach ( IRequestCycle requestCycle ) { } @ Override public boolean equals ( Object obj ) { } @ Override public int hashCode ( ) { } @ Override public String toString ( ) { } }

Fix:
response . disableCaching ( ) ;
Buggy code:
public final class LocalizedImageResource implements IClusterable , IResourceListener { private static final long serialVersionUID = 1L ; private Boolean resourceKind ; private final Component component ; private Resource resource ; private ResourceReference resourceReference ; private ValueMap resourceParameters ; private transient Locale locale ; private transient String style ; private static final class ImageValueParser extends MetaPatternParser { private static final Group factoryName = new Group ( MetaPattern . VARIABLE_NAME ) ; private static final Group imageReferenceName = new Group ( MetaPattern . VARIABLE_NAME ) ; private static final Group specification = new Group ( MetaPattern . ANYTHING_NON_EMPTY ) ; private static final MetaPattern pattern = new MetaPattern ( new MetaPattern [ ] { LocalizedImageResource . ImageValueParser . factoryName , MetaPattern . COLON , new org . apache . wicket . util . parse . metapattern . OptionalMetaPattern ( new MetaPattern [ ] { LocalizedImageResource . ImageValueParser . imageReferenceName } ) , MetaPattern . COLON , LocalizedImageResource . ImageValueParser . specification } ) ; private ImageValueParser ( final CharSequence input ) { } private String getFactoryName ( ) { } private String getImageReferenceName ( ) { } private String getSpecification ( ) { } } public LocalizedImageResource ( final Component component ) { } public final void bind ( ) { } public final void onResourceRequested ( ) { } public final void setResource ( final Resource resource ) { } public final void setResourceReference ( final ResourceReference resourceReference ) { <START_BUG> setResourceReference ( resourceReference , null ) ; <END_BUG> } public final boolean isStateless ( ) { } public final void setResourceReference ( final ResourceReference resourceReference , final ValueMap resourceParameters ) { } public final void setSrcAttribute ( final ComponentTag tag ) { } private IResourceFactory getResourceFactory ( final Application application , final String factoryName ) { } private void loadStaticImage ( final String path ) { } private void newImage ( final CharSequence value ) { } public final Resource getResource ( ) { } public final ResourceReference getResourceReference ( ) { } }

Fix:
setResourceReference ( resourceReference , resourceParameters ) ;
Buggy code:
public final class MapsforgeMapProvider extends AbstractMapProvider { public static final String MAPSFORGE_CYCLEMAP_ID = "MAPSFORGE_CYCLEMAP" ; public static final String MAPSFORGE_MAPNIK_ID = "MAPSFORGE_MAPNIK" ; private MapItemFactory mapItemFactory = new MapsforgeMapItemFactory ( ) ; private MapsforgeMapProvider ( ) { } private static final class Holder { private static final MapsforgeMapProvider INSTANCE = new MapsforgeMapProvider ( ) ; } public static MapsforgeMapProvider getInstance ( ) { } public static List < String > getOfflineMaps ( ) { } public static boolean isValidMapFile ( final String mapFileIn ) { } @ Override public boolean isSameActivity ( final MapSource source1 , final MapSource source2 ) { <START_BUG> return ( source1 == source2 ) || ( ( ! ( source1 instanceof MapsforgeMapProvider . OfflineMapSource ) ) && ( ! ( source2 instanceof MapsforgeMapProvider . OfflineMapSource ) ) ) ; <END_BUG> } @ Override public Class < ? extends Activity > getMapClass ( ) { } @ Override public int getMapViewId ( ) { } @ Override public int getMapLayoutId ( ) { } @ Override public MapItemFactory getMapItemFactory ( ) { } public static final class OfflineMapSource extends MapsforgeMapSource { private final String fileName ; public OfflineMapSource ( final String fileName , final MapProvider mapProvider , final String name , final MapGeneratorInternal generator ) { } @ Override public boolean isAvailable ( ) { } public String getFileName ( ) { } } public void updateOfflineMaps ( ) { } }

Fix:
return ( ( source1 . getNumericalId ( ) ) == ( source2 . getNumericalId ( ) ) ) || ( ( ! ( source1 instanceof MapsforgeMapProvider . OfflineMapSource ) ) && ( ! ( source2 instanceof MapsforgeMapProvider . OfflineMapSource ) ) ) ;
Buggy code:
public class NullLiteral extends Expression { NullLiteral ( AST ast ) { } public int getNodeType ( ) { } ASTNode clone ( AST target ) { } public boolean subtreeMatch ( ASTMatcher matcher , Object other ) { } void accept0 ( ASTVisitor visitor ) { <START_BUG> boolean visitChildren = visitor . visit ( this ) ; <END_BUG> visitor . endVisit ( this ) ; } int memSize ( ) { } int treeSize ( ) { } }

Fix:
visitor . visit ( this ) ;
Buggy code:
public class WeldJpaInjectionServices implements JpaInjectionServices { private final DeploymentUnit deploymentUnit ; private final ServiceRegistry serviceRegistry ; public WeldJpaInjectionServices ( DeploymentUnit deploymentUnit , ServiceRegistry serviceRegistry ) { } @ Override public EntityManager resolvePersistenceContext ( InjectionPoint injectionPoint ) { } @ Override public EntityManagerFactory resolvePersistenceUnit ( InjectionPoint injectionPoint ) { } @ Override public ResourceReferenceFactory < EntityManager > registerPersistenceContextInjectionPoint ( final InjectionPoint injectionPoint ) { final PersistenceContext context = injectionPoint . getAnnotated ( ) . getAnnotation ( PersistenceContext . class ) ; if ( context == null ) { throw MESSAGES . annotationNotFound ( PersistenceContext . class , injectionPoint . getMember ( ) ) ; } final String scopedPuName = getScopedPUName ( deploymentUnit , context . unitName ( ) ) ; final ServiceName persistenceUnitServiceName = PersistenceUnitServiceImpl . getPUServiceName ( scopedPuName ) ; final ServiceController < ? > serviceController = serviceRegistry . getRequiredService ( persistenceUnitServiceName ) ; final PersistenceUnitServiceImpl persistenceUnitService = ( ( PersistenceUnitServiceImpl ) ( serviceController . getValue ( ) ) ) ; return new ResourceReferenceFactory < EntityManager > ( ) { @ Override public ResourceReference < EntityManager > createResource ( ) { <START_BUG> final TransactionScopedEntityManager result = new TransactionScopedEntityManager ( scopedPuName , new HashMap < Object , Object > ( ) , persistenceUnitService . getEntityManagerFactory ( ) , context . synchronizationType ( ) ) ; <END_BUG> return new org . jboss . weld . injection . spi . helpers . SimpleResourceReference < EntityManager > ( result ) ; } } ; } @ Override public ResourceReferenceFactory < EntityManagerFactory > registerPersistenceUnitInjectionPoint ( final InjectionPoint injectionPoint ) { } @ Override public void cleanup ( ) { } private String getScopedPUName ( final DeploymentUnit deploymentUnit , final String persistenceUnitName ) { } }

Fix:
final TransactionScopedEntityManager result = new TransactionScopedEntityManager ( scopedPuName , new HashMap < Object , Object > ( ) , persistenceUnitService . getEntityManagerFactory ( ) , context . synchronization ( ) ) ;
Buggy code:
public class CreateSubFolderAction extends AbstractColumbaAction implements ISelectionListener { public CreateSubFolderAction ( IFrameMediator frameMediator ) { } public void actionPerformed ( ActionEvent evt ) { } public void selectionChanged ( SelectionChangedEvent e ) { <START_BUG> if ( ( ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( e ) ) . getSelected ( ) . length ) > 0 ) { <END_BUG> setEnabled ( true ) ; } else { setEnabled ( false ) ; } } }

Fix:
if ( ( ( ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( e ) ) . getSelected ( ) . length ) == 1 ) && ( ( ( org . columba . mail . gui . tree . selection . TreeSelectionChangedEvent ) ( e ) ) . getSelected ( ) [ 0 ] . getAllowsChildren ( ) ) ) {
Buggy code:
public final class ResourceAdapterDeploymentService extends AbstractResourceAdapterDeploymentService implements Service < ResourceAdapterDeployment > { private static final DeployersLogger DEPLOYERS_LOGGER = Logger . getMessageLogger ( DeployersLogger . class , "org.jboss.as.connector.deployers.RADeployer" ) ; private final Module module ; private final ConnectorXmlDescriptor connectorXmlDescriptor ; private final Connector cmd ; private final IronJacamar ijmd ; public ResourceAdapterDeploymentService ( final ConnectorXmlDescriptor connectorXmlDescriptor , final Connector cmd , final IronJacamar ijmd , final Module module ) { } @ Override public void start ( StartContext context ) throws StartException { } @ Override public void stop ( StopContext context ) { <START_BUG> ConnectorLogger . DEPLOYMENT_CONNECTOR_LOGGER . debugf ( "Stopping<seq2seq4repair_space>sevice<seq2seq4repair_space>%s" , RESOURCE_ADAPTER_SERVICE_PREFIX . append ( this . value . getDeployment ( ) . getDeploymentName ( ) ) ) ; <END_BUG> managementRepository . getValue ( ) . getConnectors ( ) . remove ( value . getDeployment ( ) . getConnector ( ) ) ; super . stop ( context ) ; } private class AS7RaDeployer extends AbstractAS7RaDeployer { private final IronJacamar ijmd ; public AS7RaDeployer ( ServiceTarget serviceContainer , URL url , String deploymentName , File root , ClassLoader cl , Connector cmd , IronJacamar ijmd ) { } @ Override public CommonDeployment doDeploy ( ) throws Throwable { } @ Override protected boolean checkActivation ( Connector cmd , IronJacamar ijmd ) { } @ Override protected DeployersLogger getLogger ( ) { } } }

Fix:
ConnectorLogger . DEPLOYMENT_CONNECTOR_LOGGER . debugf ( "Stopping<seq2seq4repair_space>sevice<seq2seq4repair_space>%s" , RESOURCE_ADAPTER_DEPLOYER_SERVICE_PREFIX . append ( this . value . getDeployment ( ) . getDeploymentName ( ) ) ) ;
Buggy code:
public class SinglePlayActivity extends Activity { GridView gridview ; SinglePlayActivity . ImageAdapter adapter ; Table table ; @ Override protected void onCreate ( Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; table = Table . getInstance ( ) ; setContentView ( activity_single_play ) ; gridview = ( ( GridView ) ( findViewById ( R . id . gridview ) ) ) ; adapter = new SinglePlayActivity . ImageAdapter ( this ) ; gridview . setAdapter ( adapter ) ; gridview . setOnItemClickListener ( new OnItemClickListener ( ) { public void onItemClick ( AdapterView < ? > parent , View v , int position , long id ) { <START_BUG> Toast . makeText ( SinglePlayActivity . this , ( "" + position ) , LENGTH_SHORT ) . show ( ) ; <END_BUG> SetStatus status = table . selectCard ( position ) ; if ( status == ( SetStatus . SET_OK ) ) { table . removeSelected ( ) ; table . ensureSet ( ) ; table . clearSelection ( ) ; } else if ( status == ( SetStatus . SET_FAIL ) ) { table . clearSelection ( ) ; } adapter . notifyDataSetChanged ( ) ; } } ) ; } @ Override public boolean onCreateOptionsMenu ( Menu menu ) { } @ Override public boolean onOptionsItemSelected ( MenuItem item ) { } public class ImageAdapter extends BaseAdapter { private Context mContext ; public ImageAdapter ( Context c ) { } public int getCount ( ) { } public Object getItem ( int position ) { } public long getItemId ( int position ) { } public View getView ( int position , View convertView , ViewGroup parent ) { } private Integer [ ] mThumbIds = new Integer [ ] { drawable . c0000 , drawable . c0001 , drawable . c0002 , drawable . c0010 , drawable . c0011 , drawable . c0012 , drawable . c0020 , drawable . c0021 , drawable . c0022 , drawable . c1000 , drawable . c1001 , drawable . c1002 , drawable . c1010 , drawable . c1011 , drawable . c1012 , drawable . c1020 , drawable . c1021 , drawable . c1022 } ; } }

Fix:
Toast . makeText ( SinglePlayActivity . this , table . get ( position ) . toString ( ) , LENGTH_SHORT ) . show ( ) ;
Buggy code:
public abstract class BinaryMember extends Member { protected BinaryMember ( JavaElement parent , String name ) { } public void copy ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } protected void generateInfos ( Object info , HashMap newElements , IProgressMonitor pm ) throws JavaModelException { } public ISourceRange getNameRange ( ) throws JavaModelException { } public ISourceRange getSourceRange ( ) throws JavaModelException { } public boolean isBinary ( ) { } public boolean isStructureKnown ( ) throws JavaModelException { } public void move ( IJavaElement container , IJavaElement sibling , String rename , boolean force , IProgressMonitor monitor ) throws JavaModelException { } <START_BUG> public void rename ( String name , boolean force , IProgressMonitor monitor ) throws JavaModelException { <END_BUG> throw new JavaModelException ( new JavaModelStatus ( IJavaModelStatusConstants . READ_ONLY , this ) ) ; } public void setContents ( String contents , IProgressMonitor monitor ) throws JavaModelException { } }

Fix:
public void rename ( String newName , boolean force , IProgressMonitor monitor ) throws JavaModelException {
Buggy code:
public class Application extends Controller { public static Result index ( ) { } public static Result indexRoll ( ) { } public static Result addRoll ( ) throws SQLException { } public static Result renderImage ( String rollId ) throws SQLException { Model . Finder f = new Model . Finder ( String . class , Roll . class ) ; Roll roll = ( ( Roll ) ( f . ref ( rollId ) ) ) ; <START_BUG> System . out . println ( roll ) ; <END_BUG> return ok ( roll . image ) . as ( "image//jpg" ) ; } public static Result getRolls ( ) { } }

Fix:
System . out . println ( roll . image ) ;
Buggy code:
public class ActionSynchronize extends UMLAction implements PluggableMenu { protected ActionSynchronize ( ) { } public void actionPerformed ( ActionEvent event ) { } public void setModuleEnabled ( boolean v ) { } public boolean initializeModule ( ) { } public Object [ ] buildContext ( JMenuItem a , String b ) { } public boolean inContext ( Object [ ] o ) { if ( ( o . length ) < 2 ) return false ; <START_BUG> if ( ( ( o [ 0 ] ) instanceof JMenuItem ) && ( o [ 1 ] . equals ( "Tools" ) ) ) { <END_BUG> return true ; } return false ; } public boolean isModuleEnabled ( ) { } public Vector getModulePopUpActions ( Vector v , Object o ) { } public boolean shutdownModule ( ) { } public String getModuleName ( ) { } public String getModuleDescription ( ) { } public String getModuleAuthor ( ) { } public String getModuleVersion ( ) { } public String getModuleKey ( ) { } public JMenuItem getMenuItem ( JMenuItem mi , String s ) { } public JMenuItem getMenuItem ( Object [ ] context ) { } }

Fix:
if ( ( ( o [ 0 ] ) instanceof JMenuItem ) && ( o [ 1 ] . equals ( KEY_TOOLS ) ) ) {
Buggy code:
abstract class PatchAttributeReadHandler implements OperationStepHandler { @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { final ServiceController < ? > mgrService = context . getServiceRegistry ( false ) . getRequiredService ( NAME ) ; final InstallationManager mgr = ( ( InstallationManager ) ( mgrService . getValue ( ) ) ) ; final ModelNode result = context . getResult ( ) ; final Identity info = mgr . getIdentity ( ) ; try { handle ( result , info ) ; } catch ( IOException e ) { <START_BUG> throw new OperationFailedException ( "failed<seq2seq4repair_space>to<seq2seq4repair_space>load<seq2seq4repair_space>identity<seq2seq4repair_space>info" ) ; <END_BUG> } context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; } abstract void handle ( ModelNode result , Identity info ) throws IOException { } }

Fix:
throw new OperationFailedException ( MESSAGES . failedToLoadIdentity ( ) , e ) ;
Buggy code:
public final class CLOptionDescriptor { public static final int ARGUMENT_REQUIRED = 1 << 1 ; public static final int ARGUMENT_OPTIONAL = 1 << 2 ; public static final int ARGUMENT_DISALLOWED = 1 << 3 ; public static final int ARGUMENTS_REQUIRED_2 = 1 << 4 ; public static final int DUPLICATES_ALLOWED = 1 << 5 ; private final int m_id ; private final int m_flags ; private final String m_name ; private final String m_description ; private final int [ ] m_incompatible ; public CLOptionDescriptor ( final String name , final int flags , final int id , final String description ) { } public CLOptionDescriptor ( final String name , final int flags , final int id , final String description , final CLOptionDescriptor [ ] incompatible ) { } private void checkFlags ( final int flags ) { } protected final int [ ] getIncompatible ( ) { } public final String getDescription ( ) { } public final int getFlags ( ) { } public final int getId ( ) { } public final String getName ( ) { } @ Override public final String toString ( ) { <START_BUG> final StringBuffer sb = new StringBuffer ( ) ; <END_BUG> sb . append ( "[OptionDescriptor<seq2seq4repair_space>" ) ; sb . append ( m_name ) ; sb . append ( ",<seq2seq4repair_space>" ) ; sb . append ( m_id ) ; sb . append ( ",<seq2seq4repair_space>" ) ; sb . append ( m_flags ) ; sb . append ( ",<seq2seq4repair_space>" ) ; sb . append ( m_description ) ; sb . append ( "<seq2seq4repair_space>]" ) ; return sb . toString ( ) ; } }

Fix:
final StringBuilder sb = new StringBuilder ( ) ;
Buggy code:
public class ProgressView extends ViewPart implements IViewPart { DetailedProgressViewer viewer ; Action cancelAction ; Action clearAllAction ; public void createPartControl ( Composite parent ) { <START_BUG> viewer = new DetailedProgressViewer ( parent , SWT . MULTI ) ; <END_BUG> viewer . setComparator ( ProgressManagerUtil . getProgressViewerComparator ( ) ) ; viewer . getControl ( ) . setLayoutData ( new org . eclipse . swt . layout . GridData ( SWT . FILL , SWT . FILL , true , true ) ) ; PlatformUI . getWorkbench ( ) . getHelpSystem ( ) . setHelp ( parent , RESPONSIVE_UI ) ; initContentProvider ( ) ; createClearAllAction ( ) ; createCancelAction ( ) ; initContextMenu ( ) ; initPulldownMenu ( ) ; initToolBar ( ) ; getSite ( ) . setSelectionProvider ( viewer ) ; } public void setFocus ( ) { } protected void initContentProvider ( ) { } private void initContextMenu ( ) { } private void initPulldownMenu ( ) { } private void initToolBar ( ) { } private IStructuredSelection getSelection ( ) { } JobInfo getSelectedInfo ( ) { } private void createCancelAction ( ) { } private void createClearAllAction ( ) { } }

Fix:
viewer = new DetailedProgressViewer ( parent , ( ( SWT . MULTI ) | ( SWT . H_SCROLL ) ) ) ;
Buggy code:
public class Song { public static final int WRITE_RESOLUTION = 24 ; private Note [ ] notes ; private static final int tempo = 20 ; public Song ( Note [ ] notes ) { } public enum StatusCodes { NOTE_ON , NOTE_OFF , UNRECOGNIZED ; public static Song . StatusCodes intToStatus ( int number ) { } } private static String readFile ( String path , Charset encoding ) throws IOException { } public static Song importMidi ( String filename ) throws IOException , InvalidMidiDataException { } public void write ( String filename ) throws IOException , InvalidMidiDataException { Sequence sequence = new Sequence ( Sequence . PPQ , Song . WRITE_RESOLUTION ) ; Track track = sequence . createTrack ( ) ; MetaMessage metaMessage = new MetaMessage ( ) ; byte [ ] tempoData = new byte [ ] { ( ( byte ) ( Song . tempo ) ) , ( ( byte ) ( 0 ) ) , 0 } ; metaMessage . setMessage ( 81 , tempoData , 3 ) ; MidiEvent midiEvent = new MidiEvent ( metaMessage , ( ( long ) ( 0 ) ) ) ; track . add ( midiEvent ) ; long currentTick = 0 ; for ( int i = 0 ; i < ( notes . length ) ; i ++ ) { final Note currentNote = notes [ i ] ; if ( currentNote == ( Note . END ) ) continue ; final long currentNoteLength = Math . round ( ( ( currentNote . getDuration ( ) ) * ( Song . WRITE_RESOLUTION ) ) ) ; if ( ! ( currentNote . isRest ( ) ) ) { final ShortMessage onMessage = new ShortMessage ( 144 , currentNote . getPitch ( ) , 64 ) ; final MidiEvent onEvent = new MidiEvent ( onMessage , currentTick ) ; track . add ( onEvent ) ; <START_BUG> final ShortMessage offMessage = new ShortMessage ( 144 , currentNote . getPitch ( ) , 64 ) ; <END_BUG> final MidiEvent offEvent = new MidiEvent ( offMessage , ( currentTick + currentNoteLength ) ) ; track . add ( offEvent ) ; } currentTick += currentNoteLength ; } MetaMessage mt = new MetaMessage ( ) ; byte [ ] bet = new byte [ ] { } ; mt . setMessage ( 47 , bet , 0 ) ; MidiEvent me = new MidiEvent ( mt , ( ( long ) ( 140 ) ) ) ; track . add ( me ) ; File destinationFile = new File ( filename ) ; MidiSystem . write ( sequence , 1 , destinationFile ) ; } public Note getNote ( int index ) { } public static Song importFromArchive ( String filename ) throws IOException { } public String toJson ( ) { } public void archive ( String path ) throws IOException { } public TransitionMatrix < Note > getMatrix ( ) { } public String toString ( ) { } @ Override public boolean equals ( Object o ) { } @ Override public int hashCode ( ) { } }

Fix:
final ShortMessage offMessage = new ShortMessage ( 128 , currentNote . getPitch ( ) , 64 ) ;
Buggy code:
public final class WebAsyncManager { private static final Object RESULT_NONE = new Object ( ) ; private static final Log logger = LogFactory . getLog ( WebAsyncManager . class ) ; private static final UrlPathHelper urlPathHelper = new UrlPathHelper ( ) ; private static final CallableProcessingInterceptor timeoutCallableInterceptor = new TimeoutCallableProcessingInterceptor ( ) ; private static final DeferredResultProcessingInterceptor timeoutDeferredResultInterceptor = new TimeoutDeferredResultProcessingInterceptor ( ) ; private AsyncWebRequest asyncWebRequest ; private AsyncTaskExecutor taskExecutor = new SimpleAsyncTaskExecutor ( this . getClass ( ) . getSimpleName ( ) ) ; private Object concurrentResult = WebAsyncManager . RESULT_NONE ; private Object [ ] concurrentResultContext ; private final Map < Object , CallableProcessingInterceptor > callableInterceptors = new LinkedHashMap < Object , CallableProcessingInterceptor > ( ) ; private final Map < Object , DeferredResultProcessingInterceptor > deferredResultInterceptors = new LinkedHashMap < Object , DeferredResultProcessingInterceptor > ( ) ; WebAsyncManager ( ) { } public void setAsyncWebRequest ( final AsyncWebRequest asyncWebRequest ) { } public void setTaskExecutor ( AsyncTaskExecutor taskExecutor ) { } public boolean isConcurrentHandlingStarted ( ) { } public boolean hasConcurrentResult ( ) { } public Object getConcurrentResult ( ) { } public Object [ ] getConcurrentResultContext ( ) { } public CallableProcessingInterceptor getCallableInterceptor ( Object key ) { } public DeferredResultProcessingInterceptor getDeferredResultInterceptor ( Object key ) { } public void registerCallableInterceptor ( Object key , CallableProcessingInterceptor interceptor ) { } public void registerCallableInterceptors ( CallableProcessingInterceptor ... interceptors ) { } public void registerDeferredResultInterceptor ( Object key , DeferredResultProcessingInterceptor interceptor ) { } public void registerDeferredResultInterceptors ( DeferredResultProcessingInterceptor ... interceptors ) { } public void clearConcurrentResult ( ) { } <START_BUG> @ SuppressWarnings ( { "unchecked" } ) <END_BUG> public void startCallableProcessing ( final Callable < ? > callable , Object ... processingContext ) throws Exception { Assert . notNull ( callable , "Callable<seq2seq4repair_space>must<seq2seq4repair_space>not<seq2seq4repair_space>be<seq2seq4repair_space>null" ) ; startCallableProcessing ( new WebAsyncTask ( callable ) , processingContext ) ; } public void startCallableProcessing ( final WebAsyncTask < ? > webAsyncTask , Object ... processingContext ) throws Exception { } private void setConcurrentResultAndDispatch ( Object result ) { } public void startDeferredResultProcessing ( final DeferredResult < ? > deferredResult , Object ... processingContext ) throws Exception { } private void startAsyncProcessing ( Object [ ] processingContext ) { } }

Fix:
@ SuppressWarnings ( { "rawtypes" , "unchecked" } )
Buggy code:
public class ViewToolbarAction extends AbstractSelectableAction { public ViewToolbarAction ( FrameMediator controller ) { } public void actionPerformed ( ActionEvent evt ) { <START_BUG> ( ( org . columba . mail . gui . view . AbstractMailView ) ( frameMediator . getBaseView ( ) ) ) . showToolbar ( ) ; <END_BUG> } }

Fix:
( ( org . columba . mail . gui . view . AbstractMailView ) ( frameMediator . getView ( ) ) ) . showToolbar ( ) ;
Buggy code:
public class Engine { private static final Logger LOG = Logger . getLogger ( Engine . class . getName ( ) ) ; private final Session session ; public Engine ( EngineConfig config ) throws ConnectionException { } private Session initializeDB ( EngineConfig config ) throws ConnectionException { Cluster cluster = Cluster . builder ( ) . addContactPoints ( config . getCassandraHosts ( ) ) . withPort ( config . getCassandraPort ( ) ) . build ( ) ; Engine . LOG . info ( ( ( ( "Connecting<seq2seq4repair_space>to<seq2seq4repair_space>Cassandra<seq2seq4repair_space>Cluster<seq2seq4repair_space>on<seq2seq4repair_space>" + ( Arrays . toString ( config . getCassandraHosts ( ) ) ) ) + ":" ) + ( config . getCassandraPort ( ) ) ) ) ; Session result ; try { result = cluster . connect ( ) ; } catch ( NoHostAvailableException nhae ) { <START_BUG> throw new ConnectionException ( nhae ) ; <END_BUG> } return result ; } public void shutdown ( ) { } public Session getSession ( ) { } }

Fix:
throw new ConnectionException ( nhae . getMessage ( ) , nhae . getCause ( ) ) ;
Buggy code:
public class FieldSignatureImpl extends MemberSignatureImpl implements FieldSignature { Class fieldType ; FieldSignatureImpl ( int modifiers , String name , Class declaringType , Class fieldType ) { } FieldSignatureImpl ( String stringRep ) { } public Class getFieldType ( ) { } String toString ( StringMaker sm ) { StringBuffer buf = new StringBuffer ( ) ; buf . append ( sm . makeModifiersString ( getModifiers ( ) ) ) ; if ( sm . includeArgs ) buf . append ( sm . makeTypeName ( getFieldType ( ) ) ) ; if ( sm . includeArgs ) buf . append ( "<seq2seq4repair_space>" ) ; <START_BUG> buf . append ( sm . makePrimaryTypeName ( getDeclaringType ( ) ) ) ; <END_BUG> buf . append ( "." ) ; buf . append ( getName ( ) ) ; return buf . toString ( ) ; } }

Fix:
buf . append ( sm . makePrimaryTypeName ( getDeclaringType ( ) , getDeclaringTypeName ( ) ) ) ;
Buggy code:
abstract class Anchor { DisplayManager displayManager ; JEditTextArea textArea ; int physicalLine ; int scrollLine ; boolean callChanged ; boolean callReset ; Anchor ( DisplayManager displayManager , JEditTextArea textArea ) { } abstract void reset ( ) { } abstract void changed ( ) { } public String toString ( ) { } void contentInserted ( int startLine , int numLines ) { } void preContentRemoved ( int startLine , int numLines ) { if ( ( this . physicalLine ) >= startLine ) { if ( ( this . physicalLine ) == startLine ) this . callChanged = true ; else { int end = Math . min ( ( startLine + numLines ) , this . physicalLine ) ; <START_BUG> for ( int i = startLine ; i < end ; i ++ ) { <END_BUG> if ( displayManager . isLineVisible ( i ) ) { this . scrollLine -= displayManager . screenLineMgr . getScreenLineCount ( i ) ; } } this . physicalLine -= end - startLine ; this . callChanged = true ; } } } }

Fix:
for ( int i = startLine + 1 ; i <= end ; i ++ ) {
Buggy code:
@ SideOnly ( Side . CLIENT ) public class BlockHandlerCarpentersCollapsibleBlock extends BlockHandlerSloped { private static final int NORMAL_YN = 0 ; private static final int NORMAL_ZN = 1 ; private static final int NORMAL_ZP = 2 ; private static final int NORMAL_XN = 3 ; private static final int NORMAL_XP = 4 ; private static final int SLOPE_YZPN = 5 ; private static final int SLOPE_YZPP = 6 ; private static final int SLOPE_XYNP = 7 ; private static final int SLOPE_XYPP = 8 ; @ Override public void renderInventoryBlock ( Block block , int metadata , int modelID , RenderBlocks renderBlocks ) { } @ Override protected void renderBaseSide ( int x , int y , int z , int side , IIcon icon ) { } @ Override protected void renderBaseBlock ( ItemStack itemStack , int x , int y , int z ) { renderBlocks . enableAO = getEnableAO ( itemStack ) ; CollapsibleUtil . computeOffsets ( TE ) ; if ( ( srcBlock . shouldSideBeRendered ( TE . getWorldObj ( ) , x , ( y + 1 ) , z , UP ) ) || ( ! ( CollapsibleUtil . isFullHeight ( TE ) ) ) ) { VertexHelper . startDrawing ( GL_TRIANGLES ) ; isSideSloped = true ; prepareTopFace ( itemStack , x , y , z ) ; isSideSloped = false ; } VertexHelper . startDrawing ( GL_QUADS ) ; renderBlocks . setRenderBounds ( 0.0 , 0.0 , 0.0 , 1.0 , 1.0 , 1.0 ) ; <START_BUG> prepareLighting ( itemStack ) ; <END_BUG> if ( srcBlock . shouldSideBeRendered ( TE . getWorldObj ( ) , x , ( y - 1 ) , z , DOWN ) ) { lightingHelper . setupLightingYNeg ( itemStack , x , y , z ) ; setIDAndRender ( itemStack , BlockHandlerCarpentersCollapsibleBlock . NORMAL_YN , x , y , z , DOWN ) ; } double oneStep = 1.0 // 15.0 ; if ( srcBlock . shouldSideBeRendered ( TE . getWorldObj ( ) , x , y , ( z - 1 ) , NORTH ) ) { if ( ( ( CollapsibleUtil . offset_XZNN ) + ( CollapsibleUtil . offset_XZPN ) ) >= oneStep ) { prepareFaceZNeg ( itemStack , x , y , z ) ; } } if ( srcBlock . shouldSideBeRendered ( TE . getWorldObj ( ) , x , y , ( z + 1 ) , SOUTH ) ) { if ( ( ( CollapsibleUtil . offset_XZNP ) + ( CollapsibleUtil . offset_XZPP ) ) >= oneStep ) { prepareFaceZPos ( itemStack , x , y , z ) ; } } if ( srcBlock . shouldSideBeRendered ( TE . getWorldObj ( ) , ( x - 1 ) , y , z , WEST ) ) { if ( ( ( CollapsibleUtil . offset_XZNN ) + ( CollapsibleUtil . offset_XZNP ) ) >= oneStep ) { prepareFaceXNeg ( itemStack , x , y , z ) ; } } if ( srcBlock . shouldSideBeRendered ( TE . getWorldObj ( ) , ( x + 1 ) , y , z , EAST ) ) { if ( ( ( CollapsibleUtil . offset_XZPN ) + ( CollapsibleUtil . offset_XZPP ) ) >= oneStep ) { prepareFaceXPos ( itemStack , x , y , z ) ; } } renderBlocks . enableAO = false ; } private float getInterpolatedLightness ( ForgeDirection side ) { } private void prepareTopFace ( ItemStack itemStack , int x , int y , int z ) { } private void prepareFaceZNeg ( ItemStack itemStack , int x , int y , int z ) { } private void prepareFaceZPos ( ItemStack itemStack , int x , int y , int z ) { } private void prepareFaceXNeg ( ItemStack itemStack , int x , int y , int z ) { } private void prepareFaceXPos ( ItemStack itemStack , int x , int y , int z ) { } }

Fix:
prepareLighting ( itemStack , x , y , z ) ;
Buggy code:
class MouseHandler extends MouseInputAdapter { MouseHandler ( JEditTextArea textArea ) { } public void mousePressed ( MouseEvent evt ) { control = ( ( OperatingSystem . isMacOS ( ) ) && ( evt . isMetaDown ( ) ) ) || ( ( ! ( OperatingSystem . isMacOS ( ) ) ) && ( evt . isControlDown ( ) ) ) ; textArea . getInputHandler ( ) . resetLastActionCount ( ) ; quickCopyDrag = ( textArea . isQuickCopyEnabled ( ) ) && ( GUIUtilities . isMiddleButton ( evt . getModifiers ( ) ) ) ; if ( ! ( quickCopyDrag ) ) { textArea . requestFocus ( ) ; JEditTextArea . focusedComponent = textArea ; } if ( ! ( textArea . getBuffer ( ) . isLoaded ( ) ) ) return ; int x = evt . getX ( ) ; int y = evt . getY ( ) ; dragStart = textArea . xyToOffset ( x , y , ( ! ( ( textArea . getPainter ( ) . isBlockCaretEnabled ( ) ) || ( textArea . isOverwriteEnabled ( ) ) ) ) ) ; dragStartLine = textArea . getLineOfOffset ( dragStart ) ; dragStartOffset = ( dragStart ) - ( textArea . getLineStartOffset ( dragStartLine ) ) ; if ( ( GUIUtilities . isPopupTrigger ( evt ) ) && ( ( textArea . getRightClickPopup ( ) ) != null ) ) { if ( textArea . isRightClickPopupEnabled ( ) ) textArea . handlePopupTrigger ( evt ) ; return ; } dragged = false ; textArea . blink = true ; textArea . invalidateLine ( textArea . getCaretLine ( ) ) ; clickCount = evt . getClickCount ( ) ; <START_BUG> if ( ( ( ( textArea . isDragEnabled ( ) ) && ( textArea . insideSelection ( x , y ) ) ) && ( ( clickCount ) == 1 ) ) && ( ! ( evt . isShiftDown ( ) ) ) ) { <END_BUG> maybeDragAndDrop = true ; textArea . moveCaretPosition ( dragStart , false ) ; return ; } else maybeDragAndDrop = false ; switch ( clickCount ) { case 1 : doSingleClick ( evt ) ; break ; case 2 : doDoubleClick ( ) ; break ; default : doTripleClick ( ) ; break ; } } private void doSingleClick ( MouseEvent evt ) { } private void doDoubleClick ( ) { } private void doTripleClick ( ) { } public void mouseDragged ( MouseEvent evt ) { } private void doSingleDrag ( MouseEvent evt ) { } private void doDoubleDrag ( MouseEvent evt ) { } private void doTripleDrag ( MouseEvent evt ) { } public void mouseReleased ( MouseEvent evt ) { } private JEditTextArea textArea ; private int dragStartLine ; private int dragStartOffset ; private int dragStart ; private int clickCount ; private boolean dragged ; private boolean quickCopyDrag ; private boolean clearStatus ; private boolean control ; private boolean maybeDragAndDrop ; }

Fix:
if ( ( ( ( textArea . isDragEnabled ( ) ) && ( textArea . selectionManager . insideSelection ( x , y ) ) ) && ( ( clickCount ) == 1 ) ) && ( ! ( evt . isShiftDown ( ) ) ) ) {
Buggy code:
public class InstanceOfExpression extends OperatorExpression { public Expression expression ; public TypeReference type ; public InstanceOfExpression ( Expression expression , TypeReference type , int operator ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public final boolean areTypesCastCompatible ( BlockScope scope , TypeBinding castTb , TypeBinding expressionTb ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { int pc = codeStream . position ; expression . generateCode ( currentScope , codeStream , true ) ; codeStream . instance_of ( type . binding ) ; if ( ! valueRequired ) codeStream . pop ( ) ; <START_BUG> codeStream . recordPositionsFrom ( pc , this ) ; <END_BUG> } public TypeBinding resolveType ( BlockScope scope ) { } public String toStringExpressionNoParenthesis ( ) { } public void traverse ( IAbstractSyntaxTreeVisitor visitor , BlockScope scope ) { } }

Fix:
codeStream . recordPositionsFrom ( pc , this . sourceStart ) ;
Buggy code:
public class FragmentBusquedaAsynkTask extends Fragment { FragmentBusquedaAsynkTask . BuscarNuevo buscarNuevo ; @ Override public void onActivityCreated ( Bundle savedInstanceState ) { } public Status getStatus ( ) { } @ Override public void onAttach ( Activity activity ) { } @ Override public void onDetach ( ) { } public void iniciaTarea ( Manga manga , ActivityManga activity ) { } public static class BuscarNuevo extends AsyncTask < Manga , Void , Integer > { static boolean running = false ; static FragmentBusquedaAsynkTask . BuscarNuevo actual = null ; ActivityManga activity ; int mangaId = 0 ; String msg ; String orgMsg ; String errorMsg ; public FragmentBusquedaAsynkTask . BuscarNuevo setActivity ( final ActivityManga activity ) { } @ Override protected void onPreExecute ( ) { } @ Override protected Integer doInBackground ( Manga ... params ) { } @ Override protected void onPostExecute ( Integer result ) { Manga manga = Database . getFullManga ( activity , mangaId ) ; if ( ( activity ) != null ) { activity . cargarCapitulos ( manga . getChapters ( ) ) ; activity . cargarDatos ( manga ) ; activity . str . setRefreshing ( false ) ; activity . setTitle ( orgMsg ) ; if ( result > 0 ) { Toast . makeText ( activity , ( ( result + ( activity . getString ( State_New ) ) ) + "<seq2seq4repair_space>manga(s)" ) , LENGTH_SHORT ) . show ( ) ; } else <START_BUG> if ( ( errorMsg . length ( ) ) > 2 ) { <END_BUG> Toast . makeText ( activity , errorMsg , LENGTH_SHORT ) ; } FragmentBusquedaAsynkTask . BuscarNuevo . running = false ; FragmentBusquedaAsynkTask . BuscarNuevo . actual = null ; } } } }

Fix:
if ( ( ( errorMsg ) != null ) && ( ( errorMsg . length ( ) ) > 2 ) ) {
Buggy code:
public abstract class FormComponent extends WebMarkupContainer { public interface IVisitor { public void formComponent ( FormComponent formComponent ) { } } private final class DisabledAttributeModel extends Model { private static final long serialVersionUID = 1L ; public Object getObject ( Component component ) { <START_BUG> return ( getApplication ( ) . getAuthorizationStrategy ( ) . allowEnabledState ( FormComponent . this ) ) && ( FormComponent . this . isEnabled ( ) ) ? null : "disabled" ; <END_BUG> } } private static final class DisabledAttributeModifier extends AttributeModifier { private static final long serialVersionUID = 1L ; public DisabledAttributeModifier ( FormComponent . DisabledAttributeModel model ) { } } protected static final short FLAG_CONVERT_EMPTY_INPUT_STRING_TO_NULL = FLAG_RESERVED1 ; private static final short FLAG_PERSISTENT = FLAG_RESERVED2 ; private static final String NO_RAW_INPUT = "[-NO-RAW-INPUT-]" ; private String rawInput = FormComponent . NO_RAW_INPUT ; private Object validators = null ; private IModel labelModel = null ; public FormComponent ( final String id ) { } public FormComponent ( final String id , IModel model ) { } public final FormComponent add ( final IValidator validator ) { } public final Form getForm ( ) { } public FormComponent setLabel ( final IModel labelModel ) { } public IModel getLabel ( ) { } public String getInput ( ) { } public String getInputName ( ) { } public final Class getValidationType ( ) { } public final List getValidators ( ) { } public final String getValue ( ) { } public final void invalid ( ) { } public boolean isMultiPart ( ) { } public final boolean isPersistent ( ) { } public final boolean isValid ( ) { } public final boolean isValidated ( ) { } public void setModelValue ( final String value ) { } public final void setPersistent ( final boolean persistent ) { } public abstract void updateModel ( ) { } public final void valid ( ) { } public final void validate ( ) { } protected String getModelValue ( ) { } protected final int inputAsInt ( ) { } protected final int inputAsInt ( final int defaultValue ) { } protected final int [ ] inputAsIntArray ( ) { } protected final String [ ] inputAsStringArray ( ) { } protected void onComponentTag ( final ComponentTag tag ) { } protected void onInvalid ( ) { } protected void onModelChanged ( ) { } protected void onValid ( ) { } protected boolean supportsPersistence ( ) { } private void validators_add ( final IValidator validator ) { } private IValidator validators_get ( int index ) { } private int validators_size ( ) { } final void registerNewUserInput ( ) { } private String getUserInput ( ) { } }

Fix:
return ( getApplication ( ) . getSecuritySettings ( ) . getAuthorizationStrategy ( ) . allowEnabledState ( FormComponent . this ) ) && ( FormComponent . this . isEnabled ( ) ) ? null : "disabled" ;
Buggy code:
class XADatabase extends Database { private EmbeddedXADataSource xaDataSource ; private XAResource xaResource ; private XAConnection xaConnection ; private ResourceAdapter ra ; XADatabase ( String dbName ) { } synchronized void makeConnection ( Properties p ) throws SQLException { if ( ( xaDataSource ) == null ) { xaDataSource = new EmbeddedXADataSource ( ) ; } <START_BUG> xaDataSource . setDatabaseName ( shortDbName ) ; <END_BUG> appendAttrString ( p ) ; if ( ( attrString ) != null ) xaDataSource . setConnectionAttributes ( attrString ) ; EngineConnection conn = getConnection ( ) ; if ( conn == null ) { xaConnection = xaDataSource . getXAConnection ( userId , password ) ; ra = xaDataSource . getResourceAdapter ( ) ; setXAResource ( xaConnection . getXAResource ( ) ) ; } else { conn . close ( ) ; } conn = ( ( EngineConnection ) ( xaConnection . getConnection ( ) ) ) ; conn . setAutoCommit ( false ) ; setConnection ( conn ) ; } protected void setXAResource ( XAResource resource ) { } protected XAResource getXAResource ( ) { } ResourceAdapter getResourceAdapter ( ) { } }

Fix:
xaDataSource . setDatabaseName ( getShortDbName ( ) ) ;
Buggy code:
public class Available extends Task implements Condition { private String value = "true" ; private String classname ; private Path classpath ; private String file ; private Path filepath ; private AntClassLoader loader ; private String property ; private String resource ; private Available . FileDir type ; public void setClassname ( String classname ) { } public void setClasspath ( Path classpath ) throws TaskException { } public void setClasspathRef ( Reference r ) throws TaskException { } public void setFile ( String file ) { } public void setFilepath ( Path filepath ) throws TaskException { } public void setProperty ( String property ) { } public void setResource ( String resource ) { } public void setType ( Available . FileDir type ) { } public void setValue ( String value ) { } public Path createClasspath ( ) throws TaskException { } public Path createFilepath ( ) throws TaskException { } public boolean eval ( ) throws TaskException { } public void execute ( ) throws TaskException { if ( ( property ) == null ) { throw new TaskException ( "property<seq2seq4repair_space>attribute<seq2seq4repair_space>is<seq2seq4repair_space>required" ) ; } if ( eval ( ) ) { String lSep = System . getProperty ( "line.separator" ) ; if ( null == ( project . getProperty ( property ) ) ) { <START_BUG> this . project . setProperty ( property , value ) ; <END_BUG> } } } private boolean checkClass ( String classname ) { } private boolean checkFile ( ) throws TaskException { } private boolean checkFile ( File f , String text ) { } private boolean checkResource ( String resource ) { } public static class FileDir extends EnumeratedAttribute { private static final String [ ] values = new String [ ] { "file" , "dir" } ; public String [ ] getValues ( ) { } public boolean isDir ( ) { } public boolean isFile ( ) { } public String toString ( ) { } } }

Fix:
setProperty ( property , value ) ;
Buggy code:
@ RunWith ( Arquillian . class ) public class ResourceRefTestCase { @ Deployment public static Archive < ? > deployment ( ) { } @ Test public void testCorrectBinding ( ) throws NamingException { } @ Test public void testInjection ( ) throws NamingException { } private static StringAsset getWebXml ( ) { <START_BUG> return new StringAsset ( ( ( ( ( ( ( ( ( "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"UTF-8\"?>\n" + ( ( ( ( ( ( ( ( ( ( ( "\n" + "<web-app<seq2seq4repair_space>version=\"3.0\"\n" ) + "<seq2seq4repair_space>xmlns=\"http:////java.sun.com//xml//ns//javaee\"\n" ) + "<seq2seq4repair_space>xmlns:xsi=\"http:////www.w3.org//2001//XMLSchema-instance\"\n" ) + "<seq2seq4repair_space>xsi:schemaLocation=\"http:////java.sun.com//xml//ns//javaee<seq2seq4repair_space>http:////java.sun.com//xml//ns//javaee//web-app_3_0.xsd\"\n" ) + "<seq2seq4repair_space>metadata-complete=\"false\">\n" ) + "\n" ) + "<seq2seq4repair_space><resource-ref>\n" ) + "<seq2seq4repair_space><res-ref-name>ds<//res-ref-name>\n" ) + "<seq2seq4repair_space><lookup-name>java://H2DS<//lookup-name>\n" ) + "<seq2seq4repair_space><injection-target>" ) + "<seq2seq4repair_space><injection-target-class>" ) ) + ( DatasourceManagedBean . class . getName ( ) ) ) + "<//injection-target-class>" ) + "<seq2seq4repair_space><injection-target-name>ds<//injection-target-name>" ) + "<seq2seq4repair_space><//injection-target>\n" ) + "<seq2seq4repair_space><//resource-ref>\n" ) + "\n" ) + "<//web-app>" ) ) ; <END_BUG> } }

Fix:
return new StringAsset ( ( ( ( ( ( ( ( ( "<?xml<seq2seq4repair_space>version=\"1.0\"<seq2seq4repair_space>encoding=\"UTF-8\"?>\n" + ( ( ( ( ( ( ( ( ( ( ( "\n" + "<web-app<seq2seq4repair_space>version=\"3.0\"\n" ) + "<seq2seq4repair_space>xmlns=\"http:////java.sun.com//xml//ns//javaee\"\n" ) + "<seq2seq4repair_space>xmlns:xsi=\"http:////www.w3.org//2001//XMLSchema-instance\"\n" ) + "<seq2seq4repair_space>xsi:schemaLocation=\"http:////java.sun.com//xml//ns//javaee<seq2seq4repair_space>http:////java.sun.com//xml//ns//javaee//web-app_3_0.xsd\"\n" ) + "<seq2seq4repair_space>metadata-complete=\"false\">\n" ) + "\n" ) + "<seq2seq4repair_space><resource-ref>\n" ) + "<seq2seq4repair_space><res-ref-name>ds<//res-ref-name>\n" ) + "<seq2seq4repair_space><lookup-name>java:jboss//datasources//ExampleDS<//lookup-name>\n" ) + "<seq2seq4repair_space><injection-target>" ) + "<seq2seq4repair_space><injection-target-class>" ) ) + ( DatasourceManagedBean . class . getName ( ) ) ) + "<//injection-target-class>" ) + "<seq2seq4repair_space><injection-target-name>ds<//injection-target-name>" ) + "<seq2seq4repair_space><//injection-target>\n" ) + "<seq2seq4repair_space><//resource-ref>\n" ) + "\n" ) + "<//web-app>" ) ) ;