Buggy code:
public abstract class AbstractTemplateClassMetaData { private static final String PUBLIC = "public<seq2seq4repair_space>" ; private static final String COMMA = ";" ; private static final String SPACE = "<seq2seq4repair_space>" ; private static final String STATIC = "static" ; private static final String IMPORT = "import" ; private static Set < String > globalStaticImports = new HashSet < String > ( ) ; private Set < String > staticImports = new HashSet < String > ( ) ; private String originalTemplate ; private static Pattern partialImport = Pattern . compile ( "import\\s+\\.(.+)" ) ; public static boolean streaming = false ; boolean stopWatch = false ; public boolean suppressNull = false ; public boolean useWithPlay = true ; public String getOriginalTemplate ( ) { } public void setOriginalTemplate ( String originalTemplate ) { } public StringBuilder sb = new StringBuilder ( ) ; protected static final String SEMI = AbstractTemplateClassMetaData . COMMA ; protected static final String TAB = "\t" ; protected static final String RENDER_RESULT = RenderResult . class . getName ( ) ; protected static final String RENDER_RESULT_PARTIAL = RenderResultPartial . class . getName ( ) ; public static final String ACTION_RUNNERS = "actionRunners" ; private static final String IMPORT_SPACE = ( AbstractTemplateClassMetaData . IMPORT ) + ( AbstractTemplateClassMetaData . SPACE ) ; private static final String CONTENT_TYPE = "Content-Type" ; public String packageName ; protected String className ; public String getClassName ( ) { } public void setClassName ( String className ) { } List < String > statics = new ArrayList < String > ( ) ; List < String > staticsSrc = new ArrayList < String > ( ) ; int staticCounter = 0 ; public String body ; protected List < InnerClassMeta > innersforTagCalls = new ArrayList < InnerClassMeta > ( ) ; protected List < InnerClassMeta > innersInvokeCalls = new ArrayList < InnerClassMeta > ( ) ; private boolean isAbstract ; public AbstractTemplateClassMetaData ( ) { } protected void pln ( Object ... ss ) { } void p ( String s ) { } public InnerClassMeta addCallTagBodyInnerClass ( String className , int count , String callbackArgs , String body ) { } public void removeLastCallTagBodyInnerClass ( ) { } private static Set < String > specialTags = new HashSet < String > ( ) ; public void printHeaders ( ) { } private boolean considerPlayDependency ( String l ) { } public String expandPartialImport ( String l ) { } protected void embedSourceTemplateName ( ) { } protected void setupTagObjectsAsFields ( ) { } protected void printAnnotations ( ) { } public static void addImportLineGlobal ( String imp ) { } protected void buildStatics ( ) { } protected void addConstructors ( ) { } private void classDeclare ( ) { } public void setAbstract ( boolean isAbstract ) { } public String superClass ; public static void addImportStatic ( Class < ? > class1 ) { } public static void addImportStaticGlobal ( String imp ) { } public void addImport ( Class < ? > class1 ) { } private static Set < String > globalImports = new HashSet < String > ( ) ; private Set < String > imports = new HashSet < String > ( ) ; public String addStaticText ( String text , String src ) { } public static void addAnnotation ( Class < ? extends Annotation > anno ) { } static Set < Class < ? extends Annotation > > typeAnnotations = new HashSet < Class < ? extends Annotation > > ( ) ; public void setContentType ( String contentType ) { } private boolean trimStaticContent = false ; protected boolean hasActionInvocation ; private Map < String , String > headers = new HashMap < String , String > ( ) ; private List < TagDef > defTags = new ArrayList < TagDef > ( ) ; public String renderArgs ; public String superClassRenderArgs = "" ; public void turnOnStopwatch ( ) { } public void suppressNull ( ) { } public void addStaticImports ( String im ) { } public void addImportLine ( String line ) { } public void trimStaticContent ( ) { } public boolean getTrimStaticContent ( ) { } public void setHasActionInvocation ( ) { } public void setHeader ( String name , String value ) { } public void printHttpHeaderMap ( ) { } public void addDefTag ( TagDef tag ) { } protected void processDefTags ( ) { } protected void declareTagInstance ( Tag t ) { String tagClassName = t . tagName ; String var = t . getTagVarName ( ) ; if ( tagClassName . equals ( "this" ) ) { tagClassName = this . getClassName ( ) ; } String decl = ( ( ( ( ( "final<seq2seq4repair_space>" + tagClassName ) + "<seq2seq4repair_space>" ) + var ) + "<seq2seq4repair_space>=<seq2seq4repair_space>new<seq2seq4repair_space>" ) + tagClassName ) + "(getOut());" ; pln ( decl ) ; <START_BUG> if ( useWithPlay ) { <END_BUG> String addRunner = ( "{<seq2seq4repair_space>" + var ) + ".setActionRunners(getActionRunners());<seq2seq4repair_space>}" ; pln ( addRunner ) ; } pln ( ) ; } protected void addImplicitFields ( ) { } public String removeLastSingleEmptyLine ( ) { } public String generateCode ( ) { } abstract void renderMethod ( ) { } abstract void layoutMethod ( ) { } abstract void getterSetter ( ) { } abstract void childLayout ( ) { } @ Override public String toString ( ) { } protected void addField ( Parameter p ) { } public static void clearImports ( ) { } No newline ; at end ; of file ; }

Fix:
if ( ( useWithPlay ) && ( ! ( tagClassName . equals ( "Each" ) ) ) ) {