nus-yam/ex-repair huggingface dataset:
Buggy code:
@ ManagedBean ( "BeanWithSimpleInjected" ) @ Interceptors ( InterceptorBean . class ) public class BeanWithSimpleInjected extends BeanParent { private final Logger log = Logger . getLogger ( BeanWithSimpleInjected . class ) ; @ Resource private SimpleManagedBean simple ; @ Resource ( lookup = "java:module//SimpleManagedBean" ) private SimpleManagedBean simple2 ; @ Inject private CDIManagedBean bean ; private CDIManagedBean bean2 ; @ Inject public void initMethod ( CDIManagedBean bean ) { } @ PostConstruct public void start ( ) { if ( ( bean2 ) == null ) { <START_BUG> throw new RuntimeException ( "PostContruct<seq2seq4repair_space>called<seq2seq4repair_space>before<seq2seq4repair_space>@Inject<seq2seq4repair_space>method" ) ; <END_BUG> } log . info ( ( "-----><seq2seq4repair_space>Constructed<seq2seq4repair_space>BeanWithSimpleInjected,<seq2seq4repair_space>simple=" + ( simple ) ) ) ; } @ Interceptors ( OtherInterceptorBean . class ) public String echo ( String msg ) { } public SimpleManagedBean getSimple ( ) { } @ AroundInvoke public Object intercept ( InvocationContext context ) throws Exception { } }

Fix:
throw new RuntimeException ( "PostConstruct<seq2seq4repair_space>called<seq2seq4repair_space>before<seq2seq4repair_space>@Inject<seq2seq4repair_space>method" ) ;
Buggy code:
public class MSVSSLABEL extends MSVSS { Commandline buildCmdLine ( ) { Commandline commandLine = new Commandline ( ) ; if ( ( getVsspath ( ) ) == null ) { throw new org . apache . tools . ant . BuildException ( "vsspath<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" , getLocation ( ) ) ; } String label = getLabel ( ) ; <START_BUG> if ( label == "" ) { <END_BUG> String msg = "label<seq2seq4repair_space>attribute<seq2seq4repair_space>must<seq2seq4repair_space>be<seq2seq4repair_space>set!" ; throw new org . apache . tools . ant . BuildException ( msg , getLocation ( ) ) ; } commandLine . setExecutable ( getSSCommand ( ) ) ; commandLine . createArgument ( ) . setValue ( COMMAND_LABEL ) ; commandLine . createArgument ( ) . setValue ( getVsspath ( ) ) ; commandLine . createArgument ( ) . setValue ( getComment ( ) ) ; commandLine . createArgument ( ) . setValue ( getAutoresponse ( ) ) ; commandLine . createArgument ( ) . setValue ( label ) ; commandLine . createArgument ( ) . setValue ( getVersion ( ) ) ; commandLine . createArgument ( ) . setValue ( getLogin ( ) ) ; return commandLine ; } public void setLabel ( String label ) { } public void setVersion ( String version ) { } public void setComment ( String comment ) { } public void setAutoresponse ( String response ) { } }

Fix:
if ( label . equals ( "" ) ) {
Buggy code:
public class GenericOutboundConnectionService extends AbstractOutboundConnectionService < GenericOutboundConnectionService > { public static final ServiceName GENERIC_OUTBOUND_CONNECTION_BASE_SERVICE_NAME = SUBSYSTEM_ENDPOINT . append ( "generic-outbound-connection" ) ; private volatile URI destination ; public GenericOutboundConnectionService ( final String connectionName , final URI destination , final OptionMap connectionCreationOptions ) { } @ Override public IoFuture < Connection > connect ( ) throws IOException { final Endpoint endpoint = this . endpointInjectedValue . getValue ( ) ; <START_BUG> return endpoint . connect ( this . destination , this . connectionCreationOptions ) ; <END_BUG> } @ Override public GenericOutboundConnectionService getValue ( ) throws IllegalArgumentException , IllegalStateException { } void setDestination ( final URI uri ) { } }

Fix:
return endpoint . connect ( this . destination , this . connectionCreationOptions , getCallbackHandler ( ) ) ;
Buggy code:
public interface IRequestTargetUrlCodingStrategy { <START_BUG> String encode ( IRequestTarget requestTarget ) ; <END_BUG> IRequestTarget decode ( String urlFragment ) { } boolean matches ( IRequestTarget requestTarget ) { } }

Fix:
CharSequence encode ( IRequestTarget requestTarget ) ;
Buggy code:
@ SuppressWarnings ( "serial" ) public class TransformTag extends HtmlEscapingAwareTag { private Object value ; private String var ; private String scope = TagUtils . SCOPE_PAGE ; public void setValue ( Object value ) { } public void setVar ( String var ) { } public void setScope ( String scope ) { } @ Override protected final int doStartTagInternal ( ) throws JspException { if ( ( this . value ) != null ) { EditorAwareTag tag = ( ( EditorAwareTag ) ( TagSupport . findAncestorWithClass ( this , EditorAwareTag . class ) ) ) ; if ( tag == null ) { throw new JspException ( "TransformTag<seq2seq4repair_space>can<seq2seq4repair_space>only<seq2seq4repair_space>be<seq2seq4repair_space>used<seq2seq4repair_space>within<seq2seq4repair_space>EditorAwareTag<seq2seq4repair_space>(e.g.<seq2seq4repair_space>BindTag)" ) ; } String result = null ; PropertyEditor editor = tag . getEditor ( ) ; if ( editor != null ) { editor . setValue ( this . value ) ; result = editor . getAsText ( ) ; } else { result = this . value . toString ( ) ; } <START_BUG> result = ( isHtmlEscape ( ) ) ? HtmlUtils . htmlEscape ( result ) : result ; <END_BUG> if ( ( this . var ) != null ) { pageContext . setAttribute ( this . var , result , TagUtils . getScope ( this . scope ) ) ; } else { try { pageContext . getOut ( ) . print ( result ) ; } catch ( IOException ex ) { throw new JspException ( ex ) ; } } } return SKIP_BODY ; } }

Fix:
result = htmlEscape ( result ) ;
Buggy code:
public class WorkbenchErrorHandler extends AbstractStatusHandler { public boolean handle ( final StatusHandlingState handlingState ) { if ( ( ( handlingState . getHandlingHint ( ) ) & ( StatusManager . SHOW ) ) == ( StatusManager . SHOW ) ) { StatusNotificationManager . getInstance ( ) . addError ( handlingState . getStatus ( ) , null ) ; } if ( ( ( handlingState . getHandlingHint ( ) ) & ( StatusManager . LOG ) ) == ( StatusManager . LOG ) ) { <START_BUG> addLoggedStatus ( handlingState . getStatus ( ) ) ; <END_BUG> WorkbenchPlugin . getDefault ( ) . getLog ( ) . log ( handlingState . getStatus ( ) ) ; } return true ; } }

Fix:
StatusManager . getManager ( ) . addLoggedStatus ( handlingState . getStatus ( ) ) ;
Buggy code:
public class JMSSink { public static void main ( String [ ] args ) { if ( ( args . length ) != 3 ) { JMSSink . usage ( "Wrong<seq2seq4repair_space>number<seq2seq4repair_space>of<seq2seq4repair_space>arguments." ) ; } String tcfBindingName = args [ 0 ] ; String topicBindingName = args [ 1 ] ; PropertyConfigurator . configure ( args [ 2 ] ) ; Category . getDefaultHierarchy ( ) . addRenderer ( Message . class , new MessageRenderer ( ) ) ; try { Context ctx = new InitialContext ( ) ; TopicConnectionFactory topicConnectionFactory ; topicConnectionFactory = ( ( TopicConnectionFactory ) ( JMSSink . lookup ( ctx , tcfBindingName ) ) ) ; TopicConnection topicConnection = topicConnectionFactory . createTopicConnection ( ) ; topicConnection . start ( ) ; TopicSession topicSession = topicConnection . createTopicSession ( false , AUTO_ACKNOWLEDGE ) ; Topic topic = ( ( Topic ) ( ctx . lookup ( topicBindingName ) ) ) ; TopicSubscriber topicSubscriber = topicSession . createDurableSubscriber ( topic , "x" ) ; LoggingEvent event ; Category remoteCategory ; while ( true ) { ObjectMessage msg = ( ( ObjectMessage ) ( topicSubscriber . receive ( ) ) ) ; event = ( ( LoggingEvent ) ( msg . getObject ( ) ) ) ; <START_BUG> remoteCategory = Category . getInstance ( event . categoryName ) ; <END_BUG> remoteCategory . callAppenders ( event ) ; } } catch ( Exception e ) { LogLog . error ( "Could<seq2seq4repair_space>not<seq2seq4repair_space>read<seq2seq4repair_space>JMS<seq2seq4repair_space>message." , e ) ; } } protected static Object lookup ( Context ctx , String name ) throws NamingException { } static void usage ( String msg ) { } }

Fix:
remoteCategory = Category . getInstance ( event . loggerName ) ;
Buggy code:
public class ZipTest extends BuildFileTest { ZipFile zfPrefixAddsDir = null ; public ZipTest ( String name ) { } public void setUp ( ) { } public void test1 ( ) { } public void test2 ( ) { } public void test3 ( ) { } public void tearDown ( ) { } public void test5 ( ) { } public void test6 ( ) { } public void test7 ( ) { } public void test8 ( ) { } public void testZipgroupfileset ( ) throws IOException { } public void testUpdateNotNecessary ( ) { } public void testUpdateIsNecessary ( ) { } public void testPrefixAddsDir ( ) throws IOException { } public void testFilesOnlyDoesntCauseRecreate ( ) throws InterruptedException { } public void testEmptySkip ( ) { } public void testZipEmptyDir ( ) { } public void testZipEmptyCreate ( ) { <START_BUG> executeTarget ( "zipEmptyCreate" ) ; <END_BUG> assertTrue ( "archive<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>created" , getProject ( ) . resolveFile ( "test3.zip" ) . exists ( ) ) ; } public void testCompressionLevel ( ) { } public void testDefaultExcludesAndUpdate ( ) throws IOException , ZipException { } }

Fix:
expectLogContaining ( "zipEmptyCreate" , "Note:<seq2seq4repair_space>creating<seq2seq4repair_space>empty" ) ;
Buggy code:
public class TimeDurationDatatypeValidator extends AbstractDatatypeValidator { private Locale fLocale = null ; private DatatypeValidator fBaseValidator = null ; private String fPattern = null ; private long fMaxInclusive = 0L ; private long fMaxExclusive = 0L ; private long fMinInclusive = 0L ; private long fMinExclusive = 0L ; private long fDuration = 0L ; private long fPeriod = 0L ; private boolean isMaxExclusiveDefined = false ; private boolean isMaxInclusiveDefined = false ; private boolean isMinExclusiveDefined = false ; private boolean isMinInclusiveDefined = false ; private int fFacetsDefined = 0 ; private boolean fDerivedByList = false ; private long [ ] fEnumTimeDuration = null ; private DatatypeMessageProvider fMessageProvider = new DatatypeMessageProvider ( ) ; public TimeDurationDatatypeValidator ( ) throws InvalidDatatypeFacetException { } public TimeDurationDatatypeValidator ( DatatypeValidator base , Hashtable facets , boolean derivedByList ) throws InvalidDatatypeFacetException { } public Object validate ( String content , Object state ) throws InvalidDatatypeValueException { } public void setBasetype ( DatatypeValidator base ) { } public void setLocale ( Locale locale ) { } public int compare ( String content1 , String content2 ) { } public Hashtable getFacets ( ) { } public static long normalizeDuration ( char [ ] value , int start ) throws InvalidDatatypeValueException { } public static Calendar normalizeInstant ( char [ ] value , int start , int length ) throws InvalidDatatypeValueException { } public Object clone ( ) throws CloneNotSupportedException { } private void boundsCheck ( long f ) throws InvalidDatatypeFacetException { boolean inUpperBound = false ; boolean inLowerBound = false ; if ( isMaxInclusiveDefined ) { inUpperBound = f <= ( fMaxInclusive ) ; } else if ( isMaxExclusiveDefined ) { inUpperBound = f < ( fMaxExclusive ) ; } if ( isMinInclusiveDefined ) { inLowerBound = f >= ( fMinInclusive ) ; } else if ( isMinExclusiveDefined ) { inLowerBound = f > ( fMinExclusive ) ; } if ( ( inUpperBound == false ) || ( inLowerBound == false ) ) { <START_BUG> throw new InvalidDatatypeFacetException ( getErrorString ( OutOfBounds , MSG_NONE , new Object [ ] { new Long ( f ) } ) ) ; <END_BUG> } } private void enumCheck ( long d ) throws InvalidDatatypeValueException { } private String getErrorString ( int major , int minor , Object [ ] args ) { } private static final int indexOf ( char [ ] value , int start , char s ) { } private static final int indexOf ( char [ ] value , int start , char s , int max ) { } private static final int indexOneOf ( char [ ] value , int start , String s ) { } private static final int indexOneOf ( char [ ] value , int start , String s , int max ) { } private static final int parseInt ( char [ ] s , int start , int length ) throws NumberFormatException { } }

Fix:
throw new InvalidDatatypeFacetException ( getErrorString ( OutOfBounds , MSG_NONE , new Object [ ] { new Long ( f ) , "" , "" , "" , "" } ) ) ;
Buggy code:
public class C extends Platform { public static final int PTR_SIZEOF = C . PTR_sizeof ( ) ; public static native final void free ( int ptr ) { } public static native final int malloc ( int size ) { } public static native final void memmove ( int dest , byte [ ] src , int size ) { } public static native final void memmove ( int dest , char [ ] src , int size ) { } public static native final void memmove ( int dest , double [ ] src , int size ) { } public static native final void memmove ( int dest , float [ ] src , int size ) { } public static native final void memmove ( int dest , int [ ] src , int size ) { } public static native final void memmove ( int dest , long [ ] src , int size ) { } public static native final void memmove ( int dest , short [ ] src , int size ) { } public static native final void memmove ( byte [ ] dest , char [ ] src , int size ) { } public static native final void memmove ( byte [ ] dest , int src , int size ) { } public static native final void memmove ( int dest , int src , int size ) { } public static native final void memmove ( char [ ] dest , int src , int size ) { } public static native final void memmove ( double [ ] dest , int src , int size ) { } public static native final void memmove ( float [ ] dest , int src , int size ) { } public static native final void memmove ( int [ ] dest , byte [ ] src , int size ) { } public static native final void memmove ( short [ ] dest , int src , int size ) { } public static native final void memmove ( int [ ] dest , int src , int size ) { } public static native final void memmove ( long [ ] dest , int src , int size ) { } <START_BUG> public static native final int memset ( int buffer , char c , int num ) ; <END_BUG> public static native final int PTR_sizeof ( ) { } public static native final int strlen ( int s ) { } }

Fix:
public static native final int memset ( int buffer , int c , int num ) ;
Buggy code:
public class Sash extends Control { boolean dragging ; int startX ; int startY ; int lastX ; int lastY ; static final int INCREMENT = 1 ; static final int PAGE_INCREMENT = 9 ; public Sash ( Composite parent , int style ) { } public void addSelectionListener ( SelectionListener listener ) { } int callWindowProc ( int hwnd , int msg , int wParam , int lParam ) { } void createHandle ( ) { super . createHandle ( ) ; <START_BUG> state |= TRANSPARENT ; <END_BUG> } static int checkStyle ( int style ) { } public Point computeSize ( int wHint , int hHint , boolean changed ) { } void drawBand ( int x , int y , int width , int height ) { } public void removeSelectionListener ( SelectionListener listener ) { } TCHAR windowClass ( ) { } int windowProc ( ) { } LRESULT WM_ERASEBKGND ( int wParam , int lParam ) { } LRESULT WM_KEYDOWN ( int wParam , int lParam ) { } LRESULT WM_GETDLGCODE ( int wParam , int lParam ) { } LRESULT WM_LBUTTONDOWN ( int wParam , int lParam ) { } LRESULT WM_LBUTTONUP ( int wParam , int lParam ) { } LRESULT WM_MOUSEMOVE ( int wParam , int lParam ) { } LRESULT WM_SETCURSOR ( int wParam , int lParam ) { } }

Fix:
state |= THEME_BACKGROUND ;
Buggy code:
public class FittiziaServletTest { @ Test public void shouldReadEmptyList ( ) { } @ Test public void shouldAddAttendandOnPost ( ) { FittiziaServlet server = new FittiziaServlet ( null ) ; HashMap < String , String > params = new HashMap < String , String > ( ) ; params . put ( "nome" , "pippo" ) ; params . put ( "cognome" , "pluto" ) ; params . put ( "email" , "pippo@gmail.com" ) ; params . put ( "idCorso" , "tortellini" ) ; server . post ( "//api//attendants" , params ) ; <START_BUG> assertEquals ( "[{nome:\"pippo\",<seq2seq4repair_space>cognome:\"pluto\",<seq2seq4repair_space>email:\"pippo@gmail.com\",<seq2seq4repair_space>idCorso:\"tortellini\"}]" , server . get ( "//api//attendants" ) ) ; <END_BUG> } }

Fix:
assertEquals ( "[{\"nome\":\"pippo\",<seq2seq4repair_space>\"cognome\":\"pluto\",<seq2seq4repair_space>\"email\":\"pippo@gmail.com\",<seq2seq4repair_space>\"idCorso\":\"tortellini\"}]" , server . get ( "//api//attendants" ) ) ;
Buggy code:
@ Deprecated class AliasStepHandler implements OperationStepHandler { private final AliasEntry aliasEntry ; AliasStepHandler ( final AliasEntry aliasEntry ) { } @ Override public void execute ( OperationContext context , ModelNode operation ) throws OperationFailedException { String op = operation . require ( OP ) . asString ( ) ; PathAddress addr = PathAddress . pathAddress ( operation . require ( OP_ADDR ) ) ; PathAddress mapped = aliasEntry . convertToTargetAddress ( addr ) ; OperationStepHandler targetHandler = context . getRootResourceRegistration ( ) . getOperationHandler ( mapped , op ) ; if ( op == null ) { throw MESSAGES . aliasStepHandlerOperationNotFound ( op , addr , mapped ) ; } ModelNode copy = operation . clone ( ) ; copy . get ( OP_ADDR ) . set ( mapped . toModelNode ( ) ) ; context . addStep ( copy , targetHandler , IMMEDIATE ) ; <START_BUG> context . completeStep ( NOOP_ROLLBACK_HANDLER ) ; <END_BUG> } }

Fix:
context . stepCompleted ( ) ;
Buggy code:
public class AsyncAppenderTestCase extends TestCase { static int DELAY = 10 ; Logger root = Logger . getRootLogger ( ) ; Layout layout = new SimpleLayout ( ) ; VectorAppender vectorAppender ; AsyncAppender asyncAppender = new AsyncAppender ( ) ; public AsyncAppenderTestCase ( String name ) { } public void setUp ( ) { vectorAppender = new VectorAppender ( ) ; vectorAppender . setDelay ( AsyncAppenderTestCase . DELAY ) ; asyncAppender . addAppender ( vectorAppender ) ; <START_BUG> asyncAppender . activateOptions ( ) ; <END_BUG> root . addAppender ( asyncAppender ) ; } public void tearDown ( ) { } public void test1 ( ) throws Exception { } public void closeTest ( ) { } public void test2 ( ) { } public static Test XXsuite ( ) { } }

Fix:
asyncAppender . activate ( ) ;
Buggy code:
@ Controller @ RequestMapping ( "//nowplaying" ) public class NowPlayingController { private static final Log LOG = LogFactory . getLog ( NowPlayingController . class ) ; private static final DateFormat DATEFORMAT = new SimpleDateFormat ( "yyyyMMddHHmmss" ) ; @ Autowired private TitleRepository titleRepository ; @ Autowired private TriggersActionService triggerService ; @ ResponseStatus ( HttpStatus . CREATED ) @ RequestMapping ( method = RequestMethod . POST ) public void addNowPlaying ( @ RequestBody List < Title > titles , @ RequestParam ( value = "ignoreNow" , defaultValue = "false" ) boolean ignoreNow ) { } @ ResponseStatus ( HttpStatus . CREATED ) @ RequestMapping ( method = RequestMethod . POST , value = { "//{station}" } ) public void addNowPlaying ( @ PathVariable ( "station" ) String station , @ RequestParam ( "artist" ) String artist , @ RequestParam ( "title" ) String title , @ RequestParam ( "dabImage" ) String dabImage , @ RequestParam ( "webImage" ) String webImage , @ RequestParam ( "time" ) String time , @ RequestParam ( value = "additional1" , required = false ) String additional1 , @ RequestParam ( value = "additional2" , required = false ) String additional2 , @ RequestParam ( value = "additional3" , required = false ) String additional3 , @ RequestParam ( value = "additional4" , required = false ) String additional4 , @ RequestParam ( value = "additional5" , required = false ) String additional5 , @ RequestParam ( value = "ignoreNow" , defaultValue = "false" ) boolean ignoreNow ) { Title tt ; Date now = new Date ( ) ; Date date = null ; try { date = NowPlayingController . DATEFORMAT . parse ( time ) ; if ( ! ignoreNow ) { Date before = DateUtils . addMinutes ( now , 10 ) ; Date after = DateUtils . addMinutes ( now , ( - 10 ) ) ; if ( ! ( ( date . after ( after ) ) && ( date . before ( before ) ) ) ) { throw new ParseException ( "Date<seq2seq4repair_space>not<seq2seq4repair_space>now" , 0 ) ; } } <START_BUG> } catch ( ParseException e ) { <END_BUG> NowPlayingController . LOG . error ( ( ( ( e . getMessage ( ) ) + ";<seq2seq4repair_space>time=" ) + time ) , e ) ; date = new Date ( ) ; } tt = new Title ( station , artist , title , dabImage , webImage , date , additional1 , additional2 , additional3 , additional4 , additional5 ) ; titleRepository . index ( tt ) ; NowPlayingController . LOG . info ( ( "Added<seq2seq4repair_space>" + tt ) ) ; triggerService . executeTriggers ( tt ) ; } @ RequestMapping ( method = RequestMethod . GET , value = { "//{station}" } ) @ ResponseBody public List < Title > requestNowPlaying ( @ PathVariable ( "station" ) String station , @ RequestParam ( value = "page" , defaultValue = "0" ) int page , @ RequestParam ( value = "size" , defaultValue = "50" ) int size , @ RequestParam ( value = "full" , defaultValue = "false" ) boolean full ) { } public static List < Title > filterTitle ( boolean full , Page < Title > titles ) { } }

Fix:
} catch ( Throwable e ) {
Buggy code:
public class SolrDocument implements Serializable , Iterable < Map . Entry < String , Object > > { private Map < String , Object > _fields = null ; public SolrDocument ( ) { } public Collection < String > getFieldNames ( ) { } public void clear ( ) { } public boolean removeFields ( String name ) { } @ SuppressWarnings ( "unchecked" ) public void setField ( String name , Object value ) { if ( value instanceof Object [ ] ) { <START_BUG> value = Arrays . asList ( ( ( Object [ ] ) ( value ) ) ) ; <END_BUG> } else if ( value instanceof Collection ) { } else if ( value instanceof Iterable ) { ArrayList < Object > lst = new ArrayList < Object > ( ) ; for ( Object o : ( ( Iterable ) ( value ) ) ) { lst . add ( o ) ; } value = lst ; } _fields . put ( name , value ) ; } @ SuppressWarnings ( "unchecked" ) public void addField ( String name , Object value ) { } public Object getFirstValue ( String name ) { } public Object getFieldValue ( String name ) { } @ SuppressWarnings ( "unchecked" ) public Collection < Object > getFieldValues ( String name ) { } @ Override public String toString ( ) { } public Iterator < Map . Entry < String , Object > > iterator ( ) { } public Map < String , Collection < Object > > getFieldValuesMap ( ) { } public Map < String , Object > getFieldValueMap ( ) { } }

Fix:
value = new ArrayList ( Arrays . asList ( ( ( Object [ ] ) ( value ) ) ) ) ;
Buggy code:
public class TestValueReplacer extends TestCase { TestPlan variables ; public TestValueReplacer ( String name ) { } public void setUp ( ) { } public void testReverseReplacement ( ) throws Exception { ValueReplacer replacer = new ValueReplacer ( variables ) ; assertTrue ( variables . getUserDefinedVariables ( ) . containsKey ( "server" ) ) ; <START_BUG> assertTrue ( replacer . variables . containsKey ( "server" ) ) ; <END_BUG> TestElement element = new TestPlan ( ) ; element . setProperty ( new StringProperty ( "domain" , "jakarta.apache.org" ) ) ; List args = new ArrayList ( ) ; args . add ( "username<seq2seq4repair_space>is<seq2seq4repair_space>jack" ) ; args . add ( "jacks_password" ) ; element . setProperty ( new CollectionProperty ( "args" , args ) ) ; replacer . reverseReplace ( element ) ; assertEquals ( "${server}" , element . getPropertyAsString ( "domain" ) ) ; args = ( ( List ) ( element . getProperty ( "args" ) . getObjectValue ( ) ) ) ; assertEquals ( "${password}" , ( ( org . apache . jmeter . testelement . property . JMeterProperty ) ( args . get ( 1 ) ) ) . getStringValue ( ) ) ; } public void testReplace ( ) throws Exception { } protected void tearDown ( ) throws Exception { } }

Fix:
assertTrue ( replacer . containsKey ( "server" ) ) ;
Buggy code:
@ SuppressWarnings ( "boxing" ) public class MapUtilsTest extends BulkTest { public MapUtilsTest ( final String name ) { } public static Test suite ( ) { } public Predicate < Object > getPredicate ( ) { } public void testPredicatedMap ( ) { final Predicate < Object > p = getPredicate ( ) ; Map < Object , Object > map = MapUtils . predicatedMap ( new HashMap < Object , Object > ( ) , p , p ) ; assertTrue ( "returned<seq2seq4repair_space>object<seq2seq4repair_space>should<seq2seq4repair_space>be<seq2seq4repair_space>a<seq2seq4repair_space>PredicatedMap" , ( map instanceof PredicatedMap ) ) ; try { <START_BUG> map = MapUtils . predicatedMap ( null , p , p ) ; <END_BUG> fail ( "Expecting<seq2seq4repair_space>IllegalArgumentException<seq2seq4repair_space>for<seq2seq4repair_space>null<seq2seq4repair_space>map." ) ; } catch ( final IllegalArgumentException e ) { } } public void testLazyMapFactory ( ) { } public void testLazyMapTransformer ( ) { } public void testInvertMap ( ) { } public void testPutAll_Map_array ( ) { } public void testConvertResourceBundle ( ) { } public void testDebugAndVerbosePrintCasting ( ) { } public void testDebugAndVerbosePrintNullMap ( ) { } public void testVerbosePrintNullLabel ( ) { } public void testDebugPrintNullLabel ( ) { } public void testVerbosePrintNullLabelAndMap ( ) { } public void testDebugPrintNullLabelAndMap ( ) { } public void testVerbosePrintNullStream ( ) { } public void testDebugPrintNullStream ( ) { } public void testDebugPrintNullKey ( ) { } public void testVerbosePrintNullKey ( ) { } public void testDebugPrintNullKeyToMap1 ( ) { } public void testVerbosePrintNullKeyToMap1 ( ) { } public void testDebugPrintNullKeyToMap2 ( ) { } public void testVerbosePrintNullKeyToMap2 ( ) { } public void testVerbosePrint ( ) { } public void testDebugPrint ( ) { } public void testVerbosePrintSelfReference ( ) { } public void testDebugPrintSelfReference ( ) { } public void testEmptyIfNull ( ) { } public void testIsEmptyWithEmptyMap ( ) { } public void testIsEmptyWithNonEmptyMap ( ) { } public void testIsEmptyWithNull ( ) { } public void testIsNotEmptyWithEmptyMap ( ) { } public void testIsNotEmptyWithNonEmptyMap ( ) { } public void testIsNotEmptyWithNull ( ) { } public void testPopulateMap ( ) { } public static class X implements Comparable < MapUtilsTest . X > { int key ; String name ; public X ( int key , String name ) { } public int compareTo ( MapUtilsTest . X o ) { } } public void testPopulateMultiMap ( ) { } public void testIterableMap ( ) { } public void testIterableSortedMap ( ) { } }

Fix:
MapUtils . predicatedMap ( null , p , p ) ;
Buggy code:
public class AmqpTransactionContext extends AmqpAbstractResource < JmsSessionInfo , Sender > { private static final Logger LOG = LoggerFactory . getLogger ( AmqpTransactionContext . class ) ; private static final Boolean ROLLBACK_MARKER = Boolean . FALSE ; private static final Boolean COMMIT_MARKER = Boolean . TRUE ; private final AmqpSession session ; private JmsTransactionId current ; private final AmqpTransferTagGenerator tagGenerator = new AmqpTransferTagGenerator ( ) ; private final Set < AmqpConsumer > txConsumers = new LinkedHashSet < AmqpConsumer > ( ) ; private Delivery pendingDelivery ; private AsyncResult pendingRequest ; public AmqpTransactionContext ( AmqpSession session ) { } @ Override public void processDeliveryUpdates ( ) throws IOException { } @ Override protected void doOpen ( ) { } public void begin ( JmsTransactionId txId , AsyncResult request ) throws Exception { } public void commit ( AsyncResult request ) throws Exception { if ( ( current ) == null ) { <START_BUG> throw new IllegalStateException ( "Rollback<seq2seq4repair_space>called<seq2seq4repair_space>with<seq2seq4repair_space>no<seq2seq4repair_space>active<seq2seq4repair_space>Transaction." ) ; <END_BUG> } preCommit ( ) ; Message message = Factory . create ( ) ; Discharge discharge = new Discharge ( ) ; discharge . setFail ( false ) ; discharge . setTxnId ( ( ( Binary ) ( current . getProviderHint ( ) ) ) ) ; message . setBody ( new org . apache . qpid . proton . amqp . messaging . AmqpValue ( discharge ) ) ; pendingDelivery = getEndpoint ( ) . delivery ( tagGenerator . getNextTag ( ) ) ; pendingDelivery . setContext ( AmqpTransactionContext . COMMIT_MARKER ) ; pendingRequest = request ; sendTxCommand ( message ) ; } public void rollback ( AsyncResult request ) throws Exception { } public void registerTxConsumer ( AmqpConsumer consumer ) { } public AmqpSession getSession ( ) { } public JmsTransactionId getTransactionId ( ) { } public Binary getAmqpTransactionId ( ) { } @ Override public String toString ( ) { } private void preCommit ( ) throws Exception { } private void preRollback ( ) throws Exception { } private void postCommit ( ) throws Exception { } private void postRollback ( ) throws Exception { } private void sendTxCommand ( Message message ) throws IOException { } }

Fix:
throw new IllegalStateException ( "Commit<seq2seq4repair_space>called<seq2seq4repair_space>with<seq2seq4repair_space>no<seq2seq4repair_space>active<seq2seq4repair_space>Transaction." ) ;
Buggy code:
class List { public static final int DEFAULT_SIZE = 10 ; private Object [ ] array ; private int mySize ; public List ( ) { } public List ( int size ) { } public void add ( Object o ) { } public boolean remove ( Object o ) { for ( int i = 0 ; i < ( mySize ) ; i ++ ) { if ( array [ i ] . equals ( o ) ) { ( mySize ) -- ; <START_BUG> for ( int j = i ; i < ( mySize ) ; i ++ ) <END_BUG> array [ j ] = array [ ( j + 1 ) ] ; return true ; } } return false ; } public Object get ( int index ) { } public int size ( ) { } }

Fix:
for ( int j = i ; j < ( mySize ) ; j ++ )
Buggy code:
public final class LocalShowHistoryHandler implements OperationStepHandler { public static final OperationStepHandler INSTANCE = new LocalShowHistoryHandler ( ) ; @ Override public void execute ( final OperationContext context , final ModelNode operation ) throws OperationFailedException { context . acquireControllerLock ( ) ; final PatchInfoService service = ( ( PatchInfoService ) ( context . getServiceRegistry ( false ) . getRequiredService ( NAME ) . getValue ( ) ) ) ; try { <START_BUG> final PatchInfo info = service . getValue ( ) ; <END_BUG> final InstalledImage installedImage = service . getStructure ( ) . getInstalledImage ( ) ; ModelNode result = new ModelNode ( ) ; result . setEmptyList ( ) ; String cumulativePatchID = info . getCumulativeID ( ) ; if ( ! ( PatchInfo . BASE . equals ( cumulativePatchID ) ) ) { fillHistory ( result , CUMULATIVE , cumulativePatchID , installedImage . getPatchHistoryDir ( cumulativePatchID ) ) ; } List < String > oneOffPatchIDs = info . getPatchIDs ( ) ; for ( String oneOffPatchID : oneOffPatchIDs ) { File historyDir = installedImage . getPatchHistoryDir ( oneOffPatchID ) ; fillHistory ( result , ONE_OFF , oneOffPatchID , historyDir ) ; } context . getResult ( ) . set ( result ) ; context . stepCompleted ( ) ; } catch ( Throwable t ) { t . printStackTrace ( ) ; throw MESSAGES . failedToShowHistory ( t ) ; } } private void fillHistory ( ModelNode result , PatchType type , String oneOffPatchID , File historyDir ) throws Exception { } }

Fix:
final PatchInfo info = service . getPatchInfo ( ) ;
Buggy code:
public class DormandPrince853IntegratorTest extends TestCase { public DormandPrince853IntegratorTest ( String name ) { } public void testDimensionCheck ( ) { } public void testNullIntervalCheck ( ) { } public void testMinStep ( ) throws DerivativeException , IntegratorException { } public void testIncreasingTolerance ( ) throws DerivativeException , IntegratorException { } public void testEvents ( ) throws DerivativeException , IntegratorException { } public void testKepler ( ) throws DerivativeException , IntegratorException { final TestProblem3 pb = new TestProblem3 ( 0.9 ) ; double minStep = 0 ; double maxStep = ( pb . getFinalTime ( ) ) - ( pb . getInitialTime ( ) ) ; double scalAbsoluteTolerance = 1.0E-8 ; double scalRelativeTolerance = scalAbsoluteTolerance ; FirstOrderIntegrator integ = new DormandPrince853Integrator ( minStep , maxStep , scalAbsoluteTolerance , scalRelativeTolerance ) ; integ . addStepHandler ( new DormandPrince853IntegratorTest . KeplerHandler ( pb ) ) ; integ . integrate ( pb , pb . getInitialTime ( ) , pb . getInitialState ( ) , pb . getFinalTime ( ) , new double [ pb . getDimension ( ) ] ) ; <START_BUG> assertTrue ( ( ( pb . getCalls ( ) ) < 2900 ) ) ; <END_BUG> } public void testVariableSteps ( ) throws DerivativeException , IntegratorException { } public void testNoDenseOutput ( ) throws DerivativeException , IntegratorException { } public void testUnstableDerivative ( ) throws DerivativeException , IntegratorException { } private static class KeplerHandler implements StepHandler { private static final long serialVersionUID = - 1752092987112788459L ; public KeplerHandler ( TestProblem3 pb ) { } public boolean requiresDenseOutput ( ) { } public void reset ( ) { } public void handleStep ( StepInterpolator interpolator , boolean isLast ) throws DerivativeException { } private int nbSteps ; private double maxError ; private TestProblem3 pb ; } private static class VariableHandler implements StepHandler { private static final long serialVersionUID = 5542665697103383623L ; public VariableHandler ( ) { } public boolean requiresDenseOutput ( ) { } public void reset ( ) { } public void handleStep ( StepInterpolator interpolator , boolean isLast ) { } private boolean firstTime = true ; private double minStep = 0 ; private double maxStep = 0 ; } private static class InterpolatingStepHandler implements StepHandler { private static final long serialVersionUID = - 5272695044664350727L ; public boolean requiresDenseOutput ( ) { } public void reset ( ) { } public void handleStep ( StepInterpolator interpolator , boolean isLast ) throws DerivativeException { } } public static Test suite ( ) { } }

Fix:
assertTrue ( ( ( pb . getCalls ( ) ) < 3300 ) ) ;
Buggy code:
public interface VEXElement extends VEXNode { public void addChild ( VEXElement child ) { } public Object clone ( ) { } public String getAttribute ( String name ) { } public List < String > getAttributeNames ( ) { } public Iterator getChildIterator ( ) { } public List < VEXElement > getChildElements ( ) { } <START_BUG> public VEXNode [ ] getChildNodes ( ) ; <END_BUG> public VEXDocument getDocument ( ) { } public String getName ( ) { } public boolean isEmpty ( ) { } public void removeAttribute ( String name ) throws DocumentValidationException { } public void setAttribute ( String name , String value ) throws DocumentValidationException { } public VEXElement getParent ( ) { } public void setParent ( VEXElement parent ) { } public String toString ( ) { } public void setContent ( Content content , int offset , int i ) { } public void insertChild ( int index , VEXElement child ) { } }

Fix:
public List < VEXNode > getChildNodes ( ) ;
Buggy code:
public class StandardProjectile extends Unit implements ColoredUnit { private Color color ; private int size ; private Point target ; private int speed ; private int initialX ; private int initialY ; private int affiliation ; private boolean destroyOnCollision ; private Area hitbox ; private double xDelta ; private double yDelta ; public StandardProjectile ( Color color , int radius , Point target , int affiliation ) { } public StandardProjectile ( Color color , int radius , int x , int y , Point target , int affiliation , int speed ) { } @ Override public void draw ( Graphics g ) { } @ Override public void onCollide ( Unit u ) { } public int getSize ( ) { } public void setSize ( int size ) { } public Point getTarget ( ) { } @ Override public Color getColor ( ) { } @ Override public void setColor ( Color color ) { } public int getSpeed ( ) { } public void setSpeed ( int speed ) { } @ Override public void fire ( Point target ) { } public int getInitialX ( ) { } public int getInitialY ( ) { } @ Override public void setLocation ( Point location ) { if ( super . isValidLocation ( location ) ) { super . setLocation ( location ) ; } else { <START_BUG> init . getGameGUI ( ) . getGraphicsControl ( ) . removeUnit ( this ) ; <END_BUG> } } @ Override public Area getHitbox ( ) { } public boolean isDestroyedOnCollision ( ) { } public void setDestroyedOnCollision ( boolean destroyOnCollision ) { } @ Override public int getCollisionConstant ( ) { } public void setHitboxDeltas ( double xDelta , double yDelta ) { } private Area buildHitbox ( ) { } public Area updateHitbox ( ) { } private int assignAffiliation ( int affiliation ) { } }

Fix:
super . onDeath ( ) ;
Buggy code:
public class FileUploadField extends FormComponent < FileUpload > { private static final long serialVersionUID = 1L ; private transient FileUpload fileUpload ; public FileUploadField ( final String id ) { } public FileUploadField ( final String id , IModel < FileUpload > model ) { } public FileUpload getFileUpload ( ) { } @ Override public void updateModel ( ) { } @ Override public FileUploadField setDefaultModel ( IModel < ? > model ) { } @ Override public String [ ] getInputAsArray ( ) { } @ Override protected FileUpload convertValue ( String [ ] value ) throws ConversionException { } @ Override public boolean isMultiPart ( ) { } @ Override protected void onComponentTag ( ComponentTag tag ) { } @ Override protected void onDetach ( ) { if ( ( ( fileUpload ) != null ) && ( forceCloseStreamsOnDetach ( ) ) ) { fileUpload . closeStreams ( ) ; fileUpload = null ; if ( ( getModel ( ) ) != null ) { <START_BUG> setModelObject ( null ) ; <END_BUG> } } super . onDetach ( ) ; } protected boolean forceCloseStreamsOnDetach ( ) { } }

Fix:
getModel ( ) . setObject ( null ) ;
Buggy code:
public abstract class UMLComboBoxModel2 extends AbstractListModel implements ComboBoxModel , MElementListener { private static Category log = Category . getInstance ( "org.argouml.uml.ui.UMLComboBoxModel2" ) ; private Object _target = null ; private List _objects = Collections . synchronizedList ( new ArrayList ( ) ) ; private Object _selectedObject = null ; private boolean _clearable = false ; private String _propertySetName ; public UMLComboBoxModel2 ( String propertySetName , boolean clearable ) { } public void listRoleItemSet ( MElementEvent e ) { } public void propertySet ( MElementEvent e ) { } public void recovered ( MElementEvent e ) { } public void removed ( MElementEvent e ) { } public void roleAdded ( MElementEvent e ) { } public void roleRemoved ( MElementEvent e ) { } public void targetChanged ( Object newTarget ) { <START_BUG> if ( ( ( ( _target ) != null ) && ( newTarget != null ) ) && ( newTarget . getClass ( ) . equals ( _target . getClass ( ) ) ) ) <END_BUG> setTarget ( newTarget ) ; } public void targetReasserted ( Object newTarget ) { } protected abstract boolean isValidElement ( Object element ) { } protected abstract void buildModelList ( ) { } protected void setElements ( Collection elements ) { } protected Object getTarget ( ) { } protected void removeAll ( Collection col ) { } protected void addAll ( Collection col ) { } protected Object getChangedElement ( MElementEvent e ) { } protected void setTarget ( Object target ) { } protected abstract Object getSelectedModelElement ( ) { } public Object getElementAt ( int index ) { } public int getSize ( ) { } public int getIndexOf ( Object o ) { } public void addElement ( Object o ) { } public void setSelectedItem ( Object o ) { } public void removeElement ( Object o ) { } public void removeAllElements ( ) { } public Object getSelectedItem ( ) { } public boolean contains ( Object elem ) { } protected boolean isValidEvent ( MElementEvent e ) { } }

Fix:
if ( ( _target ) != newTarget )
Buggy code:
public class TutorialActivity extends FragmentActivity implements ClickHandler { private TutorialActivity THIS = this ; private ViewPager mPager ; private PagerAdapter mPagerAdapter ; boolean activityStarted = false ; private int [ ] mScreenIds ; @ Override protected void onCreate ( Bundle savedInstanceState ) { } @ Override public void onBackPressed ( ) { } @ Override protected void onStop ( ) { } @ Override protected void onDestroy ( ) { } @ Override protected void onRestart ( ) { } @ Override protected void onResume ( ) { } private class ScreenSlidePagerAdapter extends FragmentStatePagerAdapter { public ScreenSlidePagerAdapter ( FragmentManager fm ) { } @ Override public Fragment getItem ( int position ) { } @ Override public int getCount ( ) { } } public void fragmentWasClicked ( ) { if ( ( mPager . getCurrentItem ( ) ) == ( ( mScreenIds . length ) - 1 ) ) { activityStarted = true ; finish ( ) ; <START_BUG> overridePendingTransition ( anim_activity_left_in , anim_activity_left_out ) ; <END_BUG> } else { mPager . setCurrentItem ( ( ( mPager . getCurrentItem ( ) ) + 1 ) ) ; } } }

Fix:
overridePendingTransition ( anim_activity_right_in , anim_activity_right_out ) ;
Buggy code:
public class Tar extends MatchingTask { private TarLongFileMode longFileMode = createMode ( ) ; private TarLongFileMode createMode ( ) { } ArrayList filesets = new ArrayList ( ) ; ArrayList fileSetFiles = new ArrayList ( ) ; private boolean longWarningGiven = false ; File baseDir ; File tarFile ; public void setBasedir ( File baseDir ) { } public void setLongfile ( TarLongFileMode mode ) { } public void setTarfile ( File tarFile ) { } public TarFileSet createTarFileSet ( ) { } public void execute ( ) throws TaskException { } private boolean archiveIsUpToDate ( final String [ ] files ) throws TaskException { final SourceFileScanner scanner = new SourceFileScanner ( ) ; setupLogger ( scanner ) ; final MergingMapper mapper = new MergingMapper ( ) ; mapper . setTo ( tarFile . getAbsolutePath ( ) ) ; <START_BUG> return ( scanner . restrict ( files , baseDir , null , mapper ) . length ) == 0 ; <END_BUG> } private void tarFile ( final File file , final TarOutputStream output , final String path , final TarFileSet tarFileSet ) throws IOException , TaskException { } }

Fix:
return ( scanner . restrict ( files , baseDir , null , mapper , getContext ( ) ) . length ) == 0 ;
Buggy code:
public class DoStatement extends Statement { public Expression condition ; public Statement action ; private BranchLabel breakLabel ; private BranchLabel continueLabel ; int mergedInitStateIndex = - 1 ; public DoStatement ( Expression condition , Statement action , int s , int e ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream ) { if ( ( ( this . bits ) & ( ASTNode . IsReachable ) ) == 0 ) { return ; } int pc = codeStream . position ; BranchLabel actionLabel = new BranchLabel ( codeStream ) ; if ( ( this . action ) != null ) actionLabel . tagBits |= BranchLabel . USED ; actionLabel . place ( ) ; this . breakLabel . initialize ( codeStream ) ; boolean hasContinueLabel = ( this . continueLabel ) != null ; if ( hasContinueLabel ) { this . continueLabel . initialize ( codeStream ) ; } if ( ( this . action ) != null ) { this . action . generateCode ( currentScope , codeStream ) ; } if ( hasContinueLabel ) { this . continueLabel . place ( ) ; } Constant cst = this . condition . optimizedBooleanConstant ( ) ; boolean isConditionOptimizedFalse = ( cst != ( Constant . NotAConstant ) ) && ( ( cst . booleanValue ( ) ) == false ) ; if ( isConditionOptimizedFalse ) { this . condition . generateCode ( currentScope , codeStream , false ) ; } else if ( hasContinueLabel ) { this . condition . generateOptimizedBoolean ( currentScope , codeStream , actionLabel , null , true ) ; } if ( ( this . mergedInitStateIndex ) != ( - 1 ) ) { codeStream . removeNotDefinitelyAssignedVariables ( currentScope , this . mergedInitStateIndex ) ; codeStream . addDefinitelyAssignedVariables ( currentScope , this . mergedInitStateIndex ) ; } <START_BUG> if ( ( this . breakLabel . forwardReferenceCount ) > 0 ) { <END_BUG> this . breakLabel . place ( ) ; } codeStream . recordPositionsFrom ( pc , this . sourceStart ) ; } public StringBuffer printStatement ( int indent , StringBuffer output ) { } public void resolve ( BlockScope scope ) { } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } }

Fix:
if ( ( this . breakLabel . forwardReferenceCount ( ) ) > 0 ) {
Buggy code:
@ Extension public class OwnershipItemListener extends ItemListener { @ Override public void onCopied ( Item src , Item item ) { } @ Override public void onCreated ( Item item ) { } private ItemOwnershipPolicy getPolicy ( ) { <START_BUG> return OwnershipPlugin . Instance ( ) . getConfiguration ( ) . getItemOwnershipPolicy ( ) ; <END_BUG> } private void modifyOwnership ( Item item , OwnershipDescription ownership ) { } }

Fix:
return OwnershipPlugin . getInstance ( ) . getConfiguration ( ) . getItemOwnershipPolicy ( ) ;
Buggy code:
public class HTMLTokenRenderer implements TokenRenderer { private String stylesheet = "java.css" ; private boolean showLineNumber = true ; private boolean anchorLineNumber = false ; private boolean addLineBreak = true ; private boolean addExplicitSpace = true ; private String lineNumberFormat = "%04d" ; public static final String CSS_CUSTOM = "custom" ; public static final String CSS_KEYWORD = "keyword" ; public static final String CSS_ANNOTATION = "annotation" ; public static final String CSS_ENUM = "enum" ; public static final String CSS_COMMENT = "comment" ; public static final String CSS_LITERAL = "literal" ; public static final String CSS_DECIMAL = "decimal" ; public static final String CSS_LINE_NO = "lineno" ; private Set < String > customIdentifiers = new HashSet < String > ( ) ; public static final String NEW_LINE = "\r\n" ; public static final String HTML_BR_TAG = "<br>" ; public static final String HTML_SPACE = "&nbsp;" ; public String endLine ( int line ) { <START_BUG> return addLineBreak ? HTMLTokenRenderer . HTML_BR_TAG : ( HTMLTokenRenderer . HTML_BR_TAG ) + ( HTMLTokenRenderer . NEW_LINE ) ; <END_BUG> } public String newLine ( int line ) { } @ Override public String render ( int decision , Token token ) { } String span ( String id , String txt ) { } String quote ( String s ) { } boolean isWhiteSpace ( String txt ) { } String fillWhiteSpace ( String txt ) { } public String getPrologue ( ) { } public String getEpilogue ( ) { } private String insertLines ( String ... lines ) { } public String getStylesheet ( ) { } public void setStylesheet ( String stylesheet ) { } public boolean getShowLineNumber ( ) { } public void setShowLineNumber ( boolean showLineNumber ) { } public boolean getAnchorLineNumber ( ) { } public void setAnchorLineNumber ( boolean anchorLineNumber ) { } public boolean getAddLineBreak ( ) { } public void setAddLineBreak ( boolean addLineBreak ) { } public boolean getAddExplicitSpace ( ) { } public void setAddExplicitSpace ( boolean addSpace ) { } public String getLineNumberFormat ( ) { } public void setLineNumberFormat ( String lineNumberFormat ) { } }

Fix:
return addLineBreak ? ( HTMLTokenRenderer . HTML_BR_TAG ) + ( HTMLTokenRenderer . NEW_LINE ) : HTMLTokenRenderer . NEW_LINE ;